shortcuts
This commit is contained in:
+6
-1
@@ -11,7 +11,7 @@ config_version=5
|
|||||||
[application]
|
[application]
|
||||||
|
|
||||||
config/name="pong"
|
config/name="pong"
|
||||||
run/main_scene="res://scenes/main_menu/MainMenu.tscn"
|
run/main_scene="res://scenes/boot_splash/BootSplash.tscn"
|
||||||
config/features=PackedStringArray("4.2", "Forward Plus")
|
config/features=PackedStringArray("4.2", "Forward Plus")
|
||||||
config/icon="res://icon.svg"
|
config/icon="res://icon.svg"
|
||||||
|
|
||||||
@@ -42,3 +42,8 @@ left_down={
|
|||||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":65,"physical_keycode":0,"key_label":0,"unicode":0,"echo":false,"script":null)
|
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":65,"physical_keycode":0,"key_label":0,"unicode":0,"echo":false,"script":null)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
confirm={
|
||||||
|
"deadzone": 0.5,
|
||||||
|
"events": [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":32,"physical_keycode":0,"key_label":0,"unicode":32,"echo":false,"script":null)
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
extends Node2D
|
||||||
|
|
||||||
|
|
||||||
|
func _ready():
|
||||||
|
await get_tree().create_timer(1.0).timeout # Replace with function body.
|
||||||
|
get_tree().change_scene_to_file("res://scenes/main_menu/MainMenu.tscn")
|
||||||
|
|
||||||
|
|
||||||
|
func _process(delta):
|
||||||
|
pass
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
[gd_scene load_steps=4 format=3 uid="uid://dsimi4xibt3ig"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" path="res://scenes/boot_splash/BootSplash.gd" id="1_qt4f0"]
|
||||||
|
|
||||||
|
[sub_resource type="SystemFont" id="SystemFont_iaru5"]
|
||||||
|
|
||||||
|
[sub_resource type="Theme" id="Theme_cneuf"]
|
||||||
|
default_font = SubResource("SystemFont_iaru5")
|
||||||
|
default_font_size = 120
|
||||||
|
|
||||||
|
[node name="BootSplash" type="Node2D"]
|
||||||
|
script = ExtResource("1_qt4f0")
|
||||||
|
|
||||||
|
[node name="TeletypeGames" type="RichTextLabel" parent="."]
|
||||||
|
anchors_preset = 8
|
||||||
|
anchor_left = 0.5
|
||||||
|
anchor_top = 0.5
|
||||||
|
anchor_right = 0.5
|
||||||
|
anchor_bottom = 0.5
|
||||||
|
offset_left = 112.0
|
||||||
|
offset_top = 224.0
|
||||||
|
offset_right = 1056.0
|
||||||
|
offset_bottom = 416.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
theme = SubResource("Theme_cneuf")
|
||||||
|
text = "Teletype Games"
|
||||||
@@ -1,9 +1,21 @@
|
|||||||
[gd_scene load_steps=4 format=3 uid="uid://c71cjy50eonxj"]
|
[gd_scene load_steps=8 format=3 uid="uid://c71cjy50eonxj"]
|
||||||
|
|
||||||
[ext_resource type="Theme" uid="uid://bbasvjlc0fdo8" path="res://default_theme.tres" id="1_gow2p"]
|
[ext_resource type="Theme" uid="uid://bbasvjlc0fdo8" path="res://default_theme.tres" id="1_gow2p"]
|
||||||
[ext_resource type="Script" path="res://scenes/main_menu/NewGameButton.gd" id="2_xmp3k"]
|
[ext_resource type="Script" path="res://scenes/main_menu/NewGameButton.gd" id="2_xmp3k"]
|
||||||
[ext_resource type="Script" path="res://scenes/main_menu/ExitButton.gd" id="3_r42kx"]
|
[ext_resource type="Script" path="res://scenes/main_menu/ExitButton.gd" id="3_r42kx"]
|
||||||
|
|
||||||
|
[sub_resource type="InputEventKey" id="InputEventKey_3qeo8"]
|
||||||
|
keycode = 32
|
||||||
|
|
||||||
|
[sub_resource type="Shortcut" id="Shortcut_heomt"]
|
||||||
|
events = [SubResource("InputEventKey_3qeo8")]
|
||||||
|
|
||||||
|
[sub_resource type="InputEventKey" id="InputEventKey_p7j63"]
|
||||||
|
keycode = 4194305
|
||||||
|
|
||||||
|
[sub_resource type="Shortcut" id="Shortcut_lofla"]
|
||||||
|
events = [SubResource("InputEventKey_p7j63")]
|
||||||
|
|
||||||
[node name="MainMenu" type="Node2D"]
|
[node name="MainMenu" type="Node2D"]
|
||||||
|
|
||||||
[node name="NewGameContainer" type="PanelContainer" parent="."]
|
[node name="NewGameContainer" type="PanelContainer" parent="."]
|
||||||
@@ -17,6 +29,7 @@ layout_mode = 2
|
|||||||
custom_minimum_size = Vector2(300, 100)
|
custom_minimum_size = Vector2(300, 100)
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
theme = ExtResource("1_gow2p")
|
theme = ExtResource("1_gow2p")
|
||||||
|
shortcut = SubResource("Shortcut_heomt")
|
||||||
text = "New Game"
|
text = "New Game"
|
||||||
script = ExtResource("2_xmp3k")
|
script = ExtResource("2_xmp3k")
|
||||||
|
|
||||||
@@ -33,6 +46,7 @@ layout_mode = 2
|
|||||||
custom_minimum_size = Vector2(300, 100)
|
custom_minimum_size = Vector2(300, 100)
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
theme = ExtResource("1_gow2p")
|
theme = ExtResource("1_gow2p")
|
||||||
|
shortcut = SubResource("Shortcut_lofla")
|
||||||
text = "Exit"
|
text = "Exit"
|
||||||
script = ExtResource("3_r42kx")
|
script = ExtResource("3_r42kx")
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
extends Button
|
extends Button
|
||||||
|
|
||||||
|
|
||||||
func _on_pressed():
|
func _on_pressed():
|
||||||
get_tree().change_scene_to_file("res://scenes/playground/Playground.tscn")
|
get_tree().change_scene_to_file("res://scenes/playground/Playground.tscn")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,8 @@ func _ready():
|
|||||||
|
|
||||||
|
|
||||||
func _process(delta):
|
func _process(delta):
|
||||||
pass
|
if Input.is_key_pressed(KEY_ESCAPE):
|
||||||
|
get_tree().quit()
|
||||||
|
|
||||||
|
|
||||||
func _on_goal_area_left_body_entered(body):
|
func _on_goal_area_left_body_entered(body):
|
||||||
|
|||||||
Reference in New Issue
Block a user