Change screen shake intensity
parent
68482f104f
commit
a6febca64e
6
main.lua
6
main.lua
|
|
@ -727,9 +727,9 @@ function love.draw(alpha)
|
||||||
|
|
||||||
-- draw stationary bubbles
|
-- draw stationary bubbles
|
||||||
local ceiling_drops_in = game.ceiling_drops_after - ceiling_progress
|
local ceiling_drops_in = game.ceiling_drops_after - ceiling_progress
|
||||||
if ceiling_drops_in == 1 or game.ceiling_should_drop then
|
if not game.game_over and (ceiling_drops_in == 1 or game.ceiling_should_drop) then
|
||||||
local dx = love.math.random(-1, 1)
|
local dx = love.math.random(-2, 2)
|
||||||
local dy = love.math.random(-1, 1)
|
local dy = love.math.random(-2, 2)
|
||||||
love.graphics.translate(dx, dy)
|
love.graphics.translate(dx, dy)
|
||||||
end
|
end
|
||||||
love.graphics.setColor(1, 1, 1, 1)
|
love.graphics.setColor(1, 1, 1, 1)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue