diff --git a/godot/Level/Island.tscn b/godot/Level/Island.tscn index 0f3c94a..e59fbff 100644 --- a/godot/Level/Island.tscn +++ b/godot/Level/Island.tscn @@ -495,6 +495,8 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.31447, 2.55588, -2.13044) [node name="Node3D" parent="." instance=ExtResource("29_etvc6")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.41845, 9.26863, -2.62281) +[node name="Node3D2" type="Node3D" parent="."] + [connection signal="finished" from="Music" to="Music" method="_on_finished"] [connection signal="timeout" from="Music/Transition" to="Music" method="_on_transition_timer_timeout"] [connection signal="timeout" from="Music/Tween" to="Music" method="_on_tween_timer_timeout"] diff --git a/godot/Textures/kill.png b/godot/Textures/kill.png new file mode 100644 index 0000000..d81bcd2 --- /dev/null +++ b/godot/Textures/kill.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8a1f484101efd3511308573523e7da8481b4236037d93dc1cc4ac4c67c9d9f73 +size 622 diff --git a/godot/Textures/kill.png.import b/godot/Textures/kill.png.import new file mode 100644 index 0000000..8591300 --- /dev/null +++ b/godot/Textures/kill.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cali86gqly7e3" +path="res://.godot/imported/kill.png-e4f5f842049185427e5a508f24a44118.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Textures/kill.png" +dest_files=["res://.godot/imported/kill.png-e4f5f842049185427e5a508f24a44118.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/godot/Textures/redo.png b/godot/Textures/redo.png new file mode 100644 index 0000000..30c24a1 --- /dev/null +++ b/godot/Textures/redo.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e2ba00701e13477c51570a85a10484511982464732b5e0489dbf452b33122dac +size 588 diff --git a/godot/Textures/redo.png.import b/godot/Textures/redo.png.import new file mode 100644 index 0000000..f2941a3 --- /dev/null +++ b/godot/Textures/redo.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://b5l5hur0x6nx0" +path="res://.godot/imported/redo.png-2705bf6a1fcf83551fb9c16401980fe8.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Textures/redo.png" +dest_files=["res://.godot/imported/redo.png-2705bf6a1fcf83551fb9c16401980fe8.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/godot/UI/PauseMenu.gd b/godot/UI/PauseMenu.gd index 0308602..a68f78c 100644 --- a/godot/UI/PauseMenu.gd +++ b/godot/UI/PauseMenu.gd @@ -27,3 +27,13 @@ func pause(): func quit(): get_tree().quit() + + +func _on_kill_pressed(): + pass # Replace with function body. + + + +func _on_restart_pressed(): + toggle() + get_tree().reload_current_scene() diff --git a/godot/UI/PauseMenu.tscn b/godot/UI/PauseMenu.tscn index bf31ee3..e4b4bd2 100644 --- a/godot/UI/PauseMenu.tscn +++ b/godot/UI/PauseMenu.tscn @@ -1,8 +1,10 @@ -[gd_scene load_steps=4 format=3 uid="uid://cbca7q18ae42h"] +[gd_scene load_steps=6 format=3 uid="uid://cbca7q18ae42h"] [ext_resource type="Script" path="res://UI/PauseMenu.gd" id="1_3puj1"] [ext_resource type="Texture2D" uid="uid://dxxd258q3uomg" path="res://UI/Play.png" id="1_c4do0"] [ext_resource type="Texture2D" uid="uid://hgb2ifbdpp3" path="res://UI/Exit.png" id="3_djmuk"] +[ext_resource type="Texture2D" uid="uid://b5l5hur0x6nx0" path="res://Textures/redo.png" id="3_wl7bl"] +[ext_resource type="Texture2D" uid="uid://cali86gqly7e3" path="res://Textures/kill.png" id="4_cr4ot"] [node name="PauseMenu" type="Control"] process_mode = 3 @@ -59,6 +61,11 @@ icon_alignment = 1 [node name="Restart" type="Button" parent="CenterContainer/HBoxContainer"] layout_mode = 2 +icon = ExtResource("3_wl7bl") + +[node name="Kill" type="Button" parent="CenterContainer/HBoxContainer"] +layout_mode = 2 +icon = ExtResource("4_cr4ot") [node name="QuitButton" type="Button" parent="CenterContainer/HBoxContainer"] process_mode = 3 @@ -76,4 +83,6 @@ flat = true icon_alignment = 1 [connection signal="pressed" from="CenterContainer/HBoxContainer/ResumeButton" to="." method="unpause"] +[connection signal="pressed" from="CenterContainer/HBoxContainer/Restart" to="." method="_on_restart_pressed"] +[connection signal="pressed" from="CenterContainer/HBoxContainer/Kill" to="." method="_on_kill_pressed"] [connection signal="pressed" from="CenterContainer/HBoxContainer/QuitButton" to="." method="quit"] diff --git a/godot/global.gd b/godot/global.gd new file mode 100644 index 0000000..1c891bc --- /dev/null +++ b/godot/global.gd @@ -0,0 +1,3 @@ +extends Node + +var cheating = false diff --git a/godot/project.godot b/godot/project.godot index 2b031d8..4ecc685 100644 --- a/godot/project.godot +++ b/godot/project.godot @@ -15,6 +15,10 @@ run/main_scene="res://UI/TitleScreen.tscn" config/features=PackedStringArray("4.1", "Forward Plus") config/icon="res://icon.svg" +[autoload] + +Global="*res://global.gd" + [display] window/size/viewport_width=512