Advertisement
Guest User

Love2d rotation G1

a guest
May 23rd, 2012
156
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. y = 100
  2. function love.load()
  3.    g1 = love.graphics.newImage("1.png")
  4.    width = g1:getWidth()
  5.    height = g1:getHeight()
  6. end
  7. function love.draw()
  8.    love.graphics.draw(g1, 100, 100, math.rad(y), 1, 1, width / 2, height / 2)
  9.    while true do
  10.    y = y + 0.1
  11.    end
  12. end
  13.  
  14. function love.update()
  15.         if love.mouse.isDown("l") then
  16.         y = y + 0.1
  17.         end
  18. end
Advertisement
RAW Paste Data Copied
Advertisement