- Removed Jump key from options menu.
- Made windowed move not show things beyond the camera.
This commit is contained in:
parent
25ff06f642
commit
b8e8658b60
3 changed files with 7 additions and 2 deletions
|
|
@ -10,13 +10,17 @@ const SAVE_PATH = "user://settings.cfg"
|
|||
|
||||
# Which input actions show up in the Controls tab. "pause" is left out on
|
||||
# purpose so the player can't lose the key that opens the menu.
|
||||
const REBINDABLE_ACTIONS = ["moveLeft", "moveRight", "moveUp", "moveDown", "jump"]
|
||||
const REBINDABLE_ACTIONS = ["moveLeft", "moveRight", "moveUp", "moveDown"]
|
||||
|
||||
# Audio bus names, as set up in the Audio tab at the bottom of the editor.
|
||||
const VOLUME_BUSES = ["Master", "Music", "SFX"]
|
||||
|
||||
func _ready() -> void:
|
||||
load_settings()
|
||||
# Don't let the window be dragged smaller than the game's 640x480 view.
|
||||
get_window().min_size = Vector2i(
|
||||
ProjectSettings.get_setting("display/window/size/viewport_width"),
|
||||
ProjectSettings.get_setting("display/window/size/viewport_height"))
|
||||
|
||||
func save_settings() -> void:
|
||||
var config := ConfigFile.new()
|
||||
|
|
|
|||
|
|
@ -25,4 +25,5 @@ visible = false
|
|||
stream = ExtResource("4_i4ak4")
|
||||
volume_db = -20.0
|
||||
autoplay = true
|
||||
bus = &"Music"
|
||||
parameters/looping = true
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ window/size/mode=2
|
|||
window/size/window_width_override=1280
|
||||
window/size/window_height_override=960
|
||||
window/stretch/mode="viewport"
|
||||
window/stretch/aspect="expand"
|
||||
window/stretch/aspect="keep"
|
||||
window/stretch/scale_mode="integer"
|
||||
|
||||
[dotnet]
|
||||
|
|
|
|||
Loading…
Reference in a new issue