diff options
| -rw-r--r-- | game-over.gd | 1 | ||||
| -rw-r--r-- | running-cat.gd | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/game-over.gd b/game-over.gd index 8d2ba74..358c689 100644 --- a/game-over.gd +++ b/game-over.gd @@ -10,7 +10,6 @@ signal go_back func set_winner(green_points, pink_points, killer_team): var bp = green_points var pp = pink_points - var bonus = 1 if killer_team != null: if bp == pp: diff --git a/running-cat.gd b/running-cat.gd index 1ee6204..2fcc362 100644 --- a/running-cat.gd +++ b/running-cat.gd @@ -20,13 +20,15 @@ func _set_speed(): $Cat.set_x_speed(speed.x) func _process(delta): + var __ + last_t += delta if last_t >= t: _set_speed() last_t = 0 - move_and_slide(speed) + __ = move_and_slide(speed) # Called when the node enters the scene tree for the first time. func _ready(): |
