This commit is contained in:
2017-07-18 18:17:05 -04:00
parent b54d9cce96
commit d37aa83f7b
2 changed files with 8 additions and 9 deletions
+1 -3
View File
@@ -121,9 +121,7 @@ end
function Game:update_wobbles(dt)
if self.progress > 1 then
if self.track_wobble < self.track_max_wobble then
self.track_wobble = self.progress * self.track_max_wobble
end
self.track_wobble = self.progress * self.track_max_wobble
self.ball_wobble = self.progress * self.ball_max_wobble
end
end
+7 -6
View File
@@ -54,7 +54,10 @@ function draw_attractor()
if (game.stretch_progress > 0.8) then
random_max = game.stretch_progress * random_max
-- Only grow so large (iOS limitations).
if game.stretch_progress < 2 then
random_max = game.stretch_progress * random_max
end
love.graphics.setColor(math.random(1, 255), math.random(1, 255), math.random(1, 255))
love.graphics.polygon("fill",
@@ -248,20 +251,18 @@ end
function love.update(dt)
if game.progress < 1 then
music:play()
elseif game.stretch_progress > 1 then
music2:stop()
music3:play()
else
music:stop()
music2:play()
end
if game.stretch_progress > 1 then
music2:stop()
music3:play()
end
if game.dead then
music:stop()
music2:stop()
music3:stop()
end
-- Update the controller.