diff --git a/godot_ship/project.godot b/godot_ship/project.godot index a557922..2b0210e 100644 --- a/godot_ship/project.godot +++ b/godot_ship/project.godot @@ -68,6 +68,11 @@ ui_rotate={ "events": [ Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"button_mask":0,"position":Vector2( 0, 0 ),"global_position":Vector2( 0, 0 ),"factor":1.0,"button_index":2,"pressed":false,"doubleclick":false,"script":null) ] } +ui_fullscreen={ +"deadzone": 0.5, +"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777254,"unicode":0,"echo":false,"script":null) + ] +} [physics] diff --git a/godot_ship/scenes/Options.tscn b/godot_ship/scenes/Options.tscn index 855245a..a113710 100644 --- a/godot_ship/scenes/Options.tscn +++ b/godot_ship/scenes/Options.tscn @@ -109,10 +109,6 @@ margin_left = 216.0 margin_top = 160.0 margin_right = 424.0 margin_bottom = 184.0 -focus_neighbour_left = NodePath("../Back") -focus_neighbour_top = NodePath("../Sliders/Volume Setting/Volume Slider") -focus_next = NodePath("../Back") -focus_previous = NodePath("../Sliders/Volume Setting/Volume Slider") __meta__ = { "_edit_lock_": true, "_edit_use_anchors_": false @@ -122,6 +118,11 @@ __meta__ = { margin_right = 102.0 margin_bottom = 24.0 rect_min_size = Vector2( 102, 0 ) +focus_neighbour_left = NodePath("../../Back") +focus_neighbour_top = NodePath("../../Sliders/Volume Setting/Volume Slider") +focus_neighbour_right = NodePath("../Dark") +focus_next = NodePath("../Dark") +focus_previous = NodePath("../../Sliders/Volume Setting/Volume Slider") text = "Light Mode" [node name="Dark" type="Button" parent="Buttons"] @@ -129,6 +130,10 @@ margin_left = 106.0 margin_right = 208.0 margin_bottom = 24.0 rect_min_size = Vector2( 102, 0 ) +focus_neighbour_left = NodePath("../Light") +focus_neighbour_top = NodePath("../../Sliders/Volume Setting/Volume Slider") +focus_next = NodePath("../../Back") +focus_previous = NodePath("../Light") text = "Dark Mode" [node name="Back" type="Button" parent="."] @@ -136,6 +141,10 @@ margin_left = 16.0 margin_top = 16.0 margin_right = 28.0 margin_bottom = 36.0 +focus_neighbour_left = NodePath("../Sliders/SFX Setting/SFX Slider") +focus_neighbour_top = NodePath(".") +focus_neighbour_right = NodePath(".") +focus_neighbour_bottom = NodePath("../Buttons/Light") text = "Back" __meta__ = { "_edit_lock_": true, diff --git a/godot_ship/script/game/Main.gd b/godot_ship/script/game/Main.gd index 994522d..344ecee 100644 --- a/godot_ship/script/game/Main.gd +++ b/godot_ship/script/game/Main.gd @@ -23,9 +23,18 @@ func _ready(): gameplay = preload("res://scenes/Gameplay.tscn") options = preload("res://scenes/Options.tscn") debug_menu = preload("res://scenes/Debug Menu.tscn") + # go fullscreen + OS.window_fullscreen = true if debug_enabled: add_child(debug_menu.instance()) +# Process global keybinds +func _input(event): + if event.is_action_pressed("ui_fullscreen"): + # toggle_fullscreen + OS.window_fullscreen = !OS.window_fullscreen + + # Ensure the scene doesn't become empty func _process(_delta): # Make sure there's something running diff --git a/godot_ship/script/game/multiplayer/Multiplayer Controller.gd b/godot_ship/script/game/multiplayer/Multiplayer Controller.gd new file mode 100644 index 0000000..1eccaec --- /dev/null +++ b/godot_ship/script/game/multiplayer/Multiplayer Controller.gd @@ -0,0 +1,16 @@ +extends Node + + +# Declare member variables here. Examples: +# var a = 2 +# var b = "text" + + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +#func _process(delta): +# pass