title
This commit is contained in:
@@ -21,6 +21,9 @@ func _ready() -> void:
|
||||
else:
|
||||
score = Score.new()
|
||||
|
||||
func _input(event: InputEvent) -> void:
|
||||
if event.is_action_pressed("quit"):
|
||||
get_tree().quit()
|
||||
|
||||
func start_one_player()->void:
|
||||
get_tree().change_scene_to_file("res://scene/main_game.tscn")
|
||||
|
||||
@@ -98,6 +98,11 @@ accept_player_2={
|
||||
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194326,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
quit={
|
||||
"deadzone": 0.2,
|
||||
"events": [Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"button_index":8,"pressure":0.0,"pressed":false,"script":null)
|
||||
]
|
||||
}
|
||||
|
||||
[physics]
|
||||
|
||||
|
||||
@@ -88,15 +88,13 @@ load_screen = true
|
||||
|
||||
[node name="Control" type="Control" parent="CanvasLayer"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="CanvasLayer/Control"]
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer/Control"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
@@ -104,18 +102,28 @@ anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -119.5
|
||||
offset_top = -64.0
|
||||
offset_top = -127.0
|
||||
offset_right = 119.5
|
||||
offset_bottom = 64.0
|
||||
offset_bottom = 127.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme = ExtResource("3_7iavl")
|
||||
theme_override_constants/separation = 64
|
||||
|
||||
[node name="buttons" type="VBoxContainer" parent="CanvasLayer/Control/HBoxContainer"]
|
||||
[node name="Label" type="Label" parent="CanvasLayer/Control/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Azzteroid"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="CanvasLayer/Control/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 64
|
||||
|
||||
[node name="buttons" type="VBoxContainer" parent="CanvasLayer/Control/VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="1" type="Button" parent="CanvasLayer/Control/HBoxContainer/buttons"]
|
||||
[node name="1" type="Button" parent="CanvasLayer/Control/VBoxContainer/HBoxContainer/buttons"]
|
||||
layout_mode = 2
|
||||
focus_next = NodePath("../2")
|
||||
focus_previous = NodePath("../exit")
|
||||
@@ -123,7 +131,7 @@ theme = ExtResource("3_7iavl")
|
||||
text = "1 Player"
|
||||
script = SubResource("GDScript_pyuau")
|
||||
|
||||
[node name="2" type="Button" parent="CanvasLayer/Control/HBoxContainer/buttons"]
|
||||
[node name="2" type="Button" parent="CanvasLayer/Control/VBoxContainer/HBoxContainer/buttons"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 0
|
||||
@@ -133,7 +141,7 @@ theme = ExtResource("3_7iavl")
|
||||
text = "2 Players"
|
||||
script = SubResource("GDScript_ruca2")
|
||||
|
||||
[node name="exit" type="Button" parent="CanvasLayer/Control/HBoxContainer/buttons"]
|
||||
[node name="exit" type="Button" parent="CanvasLayer/Control/VBoxContainer/HBoxContainer/buttons"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 0
|
||||
@@ -143,23 +151,23 @@ theme = ExtResource("3_7iavl")
|
||||
text = "Exit"
|
||||
script = SubResource("GDScript_7iavl")
|
||||
|
||||
[node name="scores" type="VBoxContainer" parent="CanvasLayer/Control/HBoxContainer"]
|
||||
[node name="scores" type="VBoxContainer" parent="CanvasLayer/Control/VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme = ExtResource("3_7iavl")
|
||||
theme_override_constants/separation = 64
|
||||
|
||||
[node name="Label" type="Label" parent="CanvasLayer/Control/HBoxContainer/scores"]
|
||||
[node name="Label" type="Label" parent="CanvasLayer/Control/VBoxContainer/HBoxContainer/scores"]
|
||||
layout_mode = 2
|
||||
theme = ExtResource("3_7iavl")
|
||||
theme_override_font_sizes/font_size = 16
|
||||
script = SubResource("GDScript_dogtj")
|
||||
|
||||
[node name="Label2" type="Label" parent="CanvasLayer/Control/HBoxContainer/scores"]
|
||||
[node name="Label2" type="Label" parent="CanvasLayer/Control/VBoxContainer/HBoxContainer/scores"]
|
||||
layout_mode = 2
|
||||
theme = ExtResource("3_7iavl")
|
||||
theme_override_font_sizes/font_size = 16
|
||||
script = SubResource("GDScript_u3kfb")
|
||||
|
||||
[connection signal="pressed" from="CanvasLayer/Control/HBoxContainer/buttons/1" to="CanvasLayer/Control/HBoxContainer/buttons/1" method="_on_pressed"]
|
||||
[connection signal="pressed" from="CanvasLayer/Control/HBoxContainer/buttons/2" to="CanvasLayer/Control/HBoxContainer/buttons/2" method="_on_pressed"]
|
||||
[connection signal="pressed" from="CanvasLayer/Control/HBoxContainer/buttons/exit" to="CanvasLayer/Control/HBoxContainer/buttons/exit" method="_on_pressed"]
|
||||
[connection signal="pressed" from="CanvasLayer/Control/VBoxContainer/HBoxContainer/buttons/1" to="CanvasLayer/Control/VBoxContainer/HBoxContainer/buttons/1" method="_on_pressed"]
|
||||
[connection signal="pressed" from="CanvasLayer/Control/VBoxContainer/HBoxContainer/buttons/2" to="CanvasLayer/Control/VBoxContainer/HBoxContainer/buttons/2" method="_on_pressed"]
|
||||
[connection signal="pressed" from="CanvasLayer/Control/VBoxContainer/HBoxContainer/buttons/exit" to="CanvasLayer/Control/VBoxContainer/HBoxContainer/buttons/exit" method="_on_pressed"]
|
||||
|
||||
Reference in New Issue
Block a user