aboutsummaryrefslogtreecommitdiffstats
path: root/godot/scenes/Die.gd
diff options
context:
space:
mode:
authorLibravatar IcECreAm777 <31211782+IcECreAm777@users.noreply.github.com>2022-07-17 03:40:41 +0200
committerLibravatar IcECreAm777 <31211782+IcECreAm777@users.noreply.github.com>2022-07-17 03:40:41 +0200
commitd3f6967fe666595cf0862be57a3dae3bb23afd24 (patch)
tree7e6f90f9a3116431dc761fdd4167b58f4b59ec43 /godot/scenes/Die.gd
parent690e705de1e8b8babbb7bf86f55a5dbae559488b (diff)
download2022-d3f6967fe666595cf0862be57a3dae3bb23afd24.tar.gz
2022-d3f6967fe666595cf0862be57a3dae3bb23afd24.tar.bz2
2022-d3f6967fe666595cf0862be57a3dae3bb23afd24.zip
asset for the goal trigger
Diffstat (limited to 'godot/scenes/Die.gd')
-rw-r--r--godot/scenes/Die.gd6
1 files changed, 6 insertions, 0 deletions
diff --git a/godot/scenes/Die.gd b/godot/scenes/Die.gd
index 21a408e..7d07a6f 100644
--- a/godot/scenes/Die.gd
+++ b/godot/scenes/Die.gd
@@ -32,8 +32,14 @@ func _ready():
mat = get_physics_material_override()
previous_bounciness = mat.get_bounce()
+
func _input(event):
+ if _game.is_post_game():
+ if event is InputEventMouseButton || event is InputEventKey:
+ _game.next_level()
+ return
+
if event is InputEventKey:
if event.scancode == KEY_TAB:
if event.is_pressed():