Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function love.draw()
- local ligne
- local colone
- for ligne = 0, 15 do
- love.graphics.draw(imgSol,ligne*39,love.graphics.getHeight() - 16*3,0 ,3 ,3 )
- end
- spriteManager.draw()
- if isMenu == true then
- love.graphics.draw(logo, 100, 80)
- love.graphics.print("appuye sur la touche",60,love.graphics.getHeight() / 2,0,2,2)
- love.graphics.print("'espace'",60,love.graphics.getHeight() / 2 + 20,0,2,2)
- love.graphics.print("pour commencer",60,love.graphics.getHeight() / 2 + 40,0,2,2)
- love.graphics.print("ou sur ce carre : ",60,love.graphics.getHeight() / 2 + 70,0,2,2)
- cursorX, cursorY = love.mouse.getPosition(X, Y)
- local couleur
- local boutonX = love.graphics.getWidth()/2-25
- local boutonY = love.graphics.getHeight()/2 + 125
- if cursorX > boutonX and cursorX < boutonX + 50
- and cursorY > boutonY and cursorY < boutonY + 50
- then
- couleur = 150
- if love.mouse.isDown("1") then
- menu = false
- end
- else
- couleur = 200
- end
- love.graphics.setColor(couleur,couleur,couleur)
- love.graphics.rectangle("fill", boutonX, boutonY, 50, 50)
- love.graphics.setColor(255,255,255)
- point = 0
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement