changes UI to a global singleton

This commit is contained in:
Luca 2024-09-26 19:59:52 +02:00
parent aa4afc4c4b
commit e3aec75404
16 changed files with 371 additions and 119 deletions

View file

@ -18,8 +18,9 @@ config/icon="res://assets/logo/logo.png"
[autoload]
Inventory="*res://globals/inventory.gd"
UI="*res://scenes/ui/ui.gd"
SaveGame="*res://globals/save_game.gd"
SaveData="*res://resources/save_data.gd"
[display]
@ -29,6 +30,10 @@ window/stretch/mode="canvas_items"
window/stretch/aspect="expand"
window/handheld/orientation=1
[global_group]
Persist="Contains all nodes that need to be saved"
[input]
joystick_right_right={
@ -41,6 +46,16 @@ joystick_right_left={
"events": [Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":2,"axis_value":-1.0,"script":null)
]
}
joystick_right_up={
"deadzone": 0.5,
"events": [Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":3,"axis_value":-1.0,"script":null)
]
}
joystick_right_down={
"deadzone": 0.5,
"events": [Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":-1,"axis":3,"axis_value":1.0,"script":null)
]
}
[input_devices]