mirror of
https://git.kittycat.homes/zoe/pegchamp.git
synced 2024-08-15 03:15:39 +00:00
bugfixes for saving and layout
This commit is contained in:
parent
c30cc4589e
commit
44d47888ca
11 changed files with 26 additions and 32 deletions
|
@ -1,6 +1,6 @@
|
|||
extends KinematicBody2D
|
||||
|
||||
signal level_just_won
|
||||
signal level_just_won()
|
||||
enum {IDLE, MOVEUP, MOVEDOWN}
|
||||
var state = IDLE
|
||||
|
||||
|
@ -32,5 +32,7 @@ func _on_ZoneDetection_area_entered(_area):
|
|||
if (state == MOVEUP):
|
||||
state = MOVEDOWN
|
||||
if GameStats.level_won:
|
||||
call_deferred("emit_signal", "level_just_won")
|
||||
emit_signal("level_just_won")
|
||||
print("finished")
|
||||
else: state = IDLE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue