-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from Nogal/death
made death more interesting
- Loading branch information
Showing
11 changed files
with
112 additions
and
7 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[remap] | ||
|
||
importer="wav" | ||
type="AudioStreamWAV" | ||
uid="uid://cbul2saq2sblr" | ||
path="res://.godot/imported/splash.wav-6d25b0162043c137e6720c8dc1c3c58c.sample" | ||
|
||
[deps] | ||
|
||
source_file="res://assets/sfx/splash.wav" | ||
dest_files=["res://.godot/imported/splash.wav-6d25b0162043c137e6720c8dc1c3c58c.sample"] | ||
|
||
[params] | ||
|
||
force/8_bit=false | ||
force/mono=false | ||
force/max_rate=false | ||
force/max_rate_hz=44100 | ||
edit/trim=false | ||
edit/normalize=false | ||
edit/loop_mode=0 | ||
edit/loop_begin=0 | ||
edit/loop_end=-1 | ||
compress/mode=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
extends CanvasLayer | ||
|
||
|
||
# Called when the node enters the scene tree for the first time. | ||
func _ready(): | ||
self.visible = false | ||
pass # Replace with function body. | ||
|
||
|
||
# Called every frame. 'delta' is the elapsed time since the previous frame. | ||
func _process(delta): | ||
pass | ||
|
||
|
||
func _on_steven_died(): | ||
self.visible = true | ||
pass # Replace with function body. | ||
|
||
func unpause(): | ||
get_tree().paused = false | ||
self.visible = false | ||
|
||
func _on_retry_pressed(): | ||
unpause() | ||
SceneManager.change_scene("res://src/Levels/level1.tscn") | ||
|
||
|
||
|
||
func _on_menu_pressed(): | ||
unpause() | ||
SceneManager.change_scene("res://src/menu/main_menu.tscn") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[gd_scene load_steps=2 format=3 uid="uid://bd05037eytelx"] | ||
|
||
[ext_resource type="Script" path="res://src/menu/death_menu.gd" id="1_5cq1b"] | ||
|
||
[node name="DeathMenu" type="CanvasLayer"] | ||
process_mode = 3 | ||
script = ExtResource("1_5cq1b") | ||
|
||
[node name="Retry" type="Button" parent="."] | ||
offset_left = 256.0 | ||
offset_top = 448.0 | ||
offset_right = 448.0 | ||
offset_bottom = 512.0 | ||
text = "KEY_RETRY" | ||
|
||
[node name="Menu" type="Button" parent="."] | ||
offset_left = 704.0 | ||
offset_top = 448.0 | ||
offset_right = 896.0 | ||
offset_bottom = 512.0 | ||
text = "KEY_MENU" | ||
|
||
[connection signal="pressed" from="Retry" to="." method="_on_retry_pressed"] | ||
[connection signal="pressed" from="Menu" to="." method="_on_menu_pressed"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters