for every 20 pixel draw picture?
Posted: Tue May 21, 2013 3:14 pm
its been awhile since ive had programmed lua and im making a game about space and i want it to draw a star for every 20 - 30 pixel how do i do that?
Code: Select all
function love.draw()
for y = 1, love.graphics.getHeight() / 20 do
for x = 1, love.graphics.getWidth() / 20 do
love.graphics.rectangle( "fill", 20 * x, 20 * y, 5, 5 )
end
end
end