Exemplo 2D
.
..
function love.draw()
for i = 1, config.numStars do
love.graphics.setColor(255 - stars[i].speed,
2
55 - stars[i].speed/2,150,
stars[i].speed*0.9)
love.graphics.draw(star, stars[i].x, stars[i].y,
0
, stars[i].speed/255 + 0.55)
end
love.graphics.setColor(255, 255, 255)
if spaceship.isBoosted == false then
love.graphics.draw(spaceship.images.normal,
spaceship.x, spaceship.y)
else
love.graphics.draw(spaceship.images.boosted,
spaceship.x, spaceship.y)
end
for i = 1, totalLaserBeams do
love.graphics.draw(laser.images.default,
lasers[i].x, lasers[i].y)
end
end
...