score on death

This commit is contained in:
2017-07-18 11:42:46 -04:00
parent 762052f1d9
commit 42ea4a9e9e
+4 -2
View File
@@ -167,8 +167,10 @@ function Game:toggle_tracks()
return true
end
function Game:update_distance(dt)
local d = (dt * self.distance_rate)
self.distance = self.distance + d
if not self.dead then
local d = (dt * self.distance_rate)
self.distance = self.distance + d
end
end
function Game:update_background_speed(dt)
--