cleans up some unused code

This commit is contained in:
artus
2020-12-06 13:51:22 +01:00
parent 4565755868
commit 9726fb8fcf
8 changed files with 61 additions and 50 deletions

View File

@@ -6,7 +6,7 @@ signal player_moved(track_offset)
signal wrong_way(coords)
# TODO:
# TODO :
# - Keyboard controls !!
var laps # This is duplicated here becayse of the track offset logic
@@ -44,7 +44,7 @@ func _handle_mouse_input(event):
if cell_idx != -1:
# Check we are following the path
if hover_cell == next_cell:
# Check if lap is completed. The is required
# Check if lap is completed. This is required
# because the input can be way ahead player car sprite
if next_cell == track[0]:
laps += 1
@@ -69,4 +69,4 @@ func _reset_state():
track = TrackSelection.get_current_track()
laps = 0
current_cell = track[0]
next_cell = track[1]
next_cell = track[1]