Hide cars and logs drawing outside of playfield.
This commit is contained in:
parent
3218c3b83c
commit
65cf8bd968
4
main.lua
4
main.lua
|
@ -269,6 +269,10 @@ function love.draw()
|
|||
else
|
||||
love.graphics.setColor(1, 1, 1)
|
||||
end
|
||||
love.graphics.setColor(0, 0, 0)
|
||||
love.graphics.rectangle("fill", 16, -t2p(game.PLAYFIELD_OFFSET_TOP), game.SCREEN_WIDTH, t2p(game.PLAYFIELD_OFFSET_TOP))
|
||||
love.graphics.rectangle("fill", 0, game.SCREEN_HEIGHT - 40, game.SCREEN_WIDTH, 48)
|
||||
love.graphics.setColor(1, 1, 1)
|
||||
local x, y = player.pos.x, player.pos.y
|
||||
love.graphics.draw(player.sprites, player.quads.dude, x, y - 8)
|
||||
x, y = player.turtlePos.x, player.turtlePos.y
|
||||
|
|
Loading…
Reference in New Issue