Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. function love.draw()
  2.  
  3. local ligne
  4. local colone
  5. for ligne = 0, 15 do
  6. love.graphics.draw(imgSol,ligne*39,love.graphics.getHeight() - 16*3,0 ,3 ,3 )
  7. end
  8. spriteManager.draw()
  9.  
  10. if isMenu == true then
  11. love.graphics.draw(logo, 100, 80)
  12. love.graphics.print("appuye sur la touche",60,love.graphics.getHeight() / 2,0,2,2)
  13. love.graphics.print("'espace'",60,love.graphics.getHeight() / 2 + 20,0,2,2)
  14. love.graphics.print("pour commencer",60,love.graphics.getHeight() / 2 + 40,0,2,2)
  15. love.graphics.print("ou sur ce carre : ",60,love.graphics.getHeight() / 2 + 70,0,2,2)
  16. cursorX, cursorY = love.mouse.getPosition(X, Y)
  17. local couleur
  18. local boutonX = love.graphics.getWidth()/2-25
  19. local boutonY = love.graphics.getHeight()/2 + 125
  20. if cursorX > boutonX and cursorX < boutonX + 50
  21. and cursorY > boutonY and cursorY < boutonY + 50
  22. then
  23. couleur = 150
  24. if love.mouse.isDown("1") then
  25. menu = false
  26. end
  27. else
  28. couleur = 200
  29. end
  30. love.graphics.setColor(couleur,couleur,couleur)
  31. love.graphics.rectangle("fill", boutonX, boutonY, 50, 50)
  32. love.graphics.setColor(255,255,255)
  33. point = 0
  34. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement