mirror of
https://github.com/kennethreitz/super-sphere.git
synced 2026-06-05 23:20:20 +00:00
score on death
This commit is contained in:
+4
-2
@@ -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)
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user