mirror of
https://github.com/libretro/lutro-iyfct.git
synced 2024-11-22 23:49:41 +00:00
Use graphics.translate
This commit is contained in:
parent
b19f9a4d06
commit
3eebc13766
3
main.lua
3
main.lua
@ -183,8 +183,7 @@ end
|
||||
function drawGame()
|
||||
-- Shake camera if hit
|
||||
if scrn_shake > 0 then
|
||||
love.graphics.camera_x = 5*(math.random()-0.5)
|
||||
love.graphics.camera_y = 5*(math.random()-0.5)
|
||||
love.graphics.translate(5*(math.random()-0.5),5*(math.random()-0.5))
|
||||
end
|
||||
|
||||
-- Draw terrain (skyscrapers etc.)
|
||||
|
Loading…
Reference in New Issue
Block a user