small racing game im working on
Diffstat (limited to 'race.gd')
| -rw-r--r-- | race.gd | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -85,8 +85,7 @@ func passed_finish() -> void: timer.stop() if not best_time_data or data.time < best_time_data.time: print("new pb!") - SaveLoad.save(saves % track_res.name, data.data()) - data = TrackSaveableData.new(track.checkpoints.size()) + data.save(saves % track_res.name) else: current_lap += 1 next_lap.emit() @@ -103,7 +102,6 @@ func _physics_process(_delta: float) -> void: ghost.update(shot[0], shot[1], shot[2]) ghost.visible = (ghost.global_position.distance_squared_to(car.global_position) > 10) - func collect(cp: int) -> void: if cp != -1: car.checkpoint_sound.play() |