Skip to content

Project Settings

Leland Vakarian edited this page Jan 7, 2024 · 2 revisions

Tracking the various project settings we’re using for the game. Select Project > Project Settings from the top menu in the Godot editor to view these settings.

Unless specified, if a setting is omitted from this list, it was left default.

General

Application

Config

Run

  • Main Scene: res://main.tscn

Display

Window

Rationale: set the default viewport, but eventually we should support common resolutions, or we should simply make the game windowed-only and allow it to be resized dynamically as the user sees fit.

Size

Make sure you have "Advanced Settings" enabled in the top-right of the General tab.

  • Viewport Width: 320
  • Viewport Height: 320
  • Mode: Windowed
  • Initial Position Type: Center of Primary Screen
  • Resizable: On
  • Window Width Override: 960
  • Window Height Override: 960

I also added a new setting in this section:

  • display/window/size/playable_area_width (all)(int): 240

Stretch

  • Mode: canvas_items
  • Aspect: keep
  • Scale Mode: fractional

Rendering

Textures

Canvas Textures

  • Default texture filter: Nearest

Input Map

Since we're only focusing on the portion of the game where you play as Santa delivering presents, we mapped a set of controls for that portion only (so far). The map is as follows.

The goal is to allow playing with the keyboard (no mouse) on WASD or arrow keys, or with a controller.

Default controls are as follows. KB stands for Keyboard, and GP stands for

  • santa_move_up
    • KB Up Arrow
    • KB W
    • GP D-pad Up
    • GP Left Stick Up
  • santa_move_down
    • KB Down Arrow
    • KB S
    • GP D-pad Down
    • GP Left Stick Down
  • santa_move_left
    • KB Left Arrow
    • KB A
    • GP D-pad Left
    • GP Left Stick Left
  • santa_move_right
    • KB Right Arrow
    • KB D
    • GP D-pad Right
    • GP Left Stick Right
  • santa_land_or_take_off (this is a toggle for the state)
    • KB Left or Right Shift
    • GP Right Face Button
  • santa_shoot
    • KB Space Bar
    • GP Right Trigger
  • santa_ability_1
    • KB Q
    • KB Num Pad 1
    • GP Left Shoulder Button
  • santa_ability_2
    • KB E
    • KB Num Pad 2
    • GP Right Shoulder Button
  • toggle_pause_menu
    • KB Escape
    • KB Pause
    • GP Start Button

Autoload

We have a custom script called resource_stash that loads a resource of type GameStats and does nothing with it. This keeps the resource in memory all the time, preventing the engine from garbage-collecting it, which allows up to store persisten globals in it. It's configured like so:

image

Clone this wiki locally