aboutsummaryrefslogtreecommitdiffstats
path: root/godot/scenes/Die.gd
diff options
context:
space:
mode:
authorLibravatar cel <cel@blos.sm>2022-07-17 02:56:58 +0100
committerLibravatar cel <cel@blos.sm>2022-07-17 02:56:58 +0100
commit5d5d662a99a512e2718aae4a4a84f050bc1d411f (patch)
treee0c4dde0528ac8318f0775c3dac511e609a72826 /godot/scenes/Die.gd
parent45c8787154fe7384c9c1faa2ab7c003b995393ca (diff)
parent16f5d5aaacdd1a1420bba8d6600942520d85cb8c (diff)
download2022-5d5d662a99a512e2718aae4a4a84f050bc1d411f.tar.gz
2022-5d5d662a99a512e2718aae4a4a84f050bc1d411f.tar.bz2
2022-5d5d662a99a512e2718aae4a4a84f050bc1d411f.zip
merged
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():