cleans up some unused code
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user