Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- y = 100
- function love.load()
- g1 = love.graphics.newImage("1.png")
- width = g1:getWidth()
- height = g1:getHeight()
- end
- function love.draw()
- love.graphics.draw(g1, 100, 100, math.rad(y), 1, 1, width / 2, height / 2)
- while true do
- y = y + 0.1
- end
- end
- function love.update()
- if love.mouse.isDown("l") then
- y = y + 0.1
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement