Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fondlvl = Image.load("res/menu.png")
- local selecteurlvl = 1
- oldpad = Controls.read()
- if endroit == "jeu" then
- police:setPixelSizes(20,30)
- screen:clear()
- screen:blit(0,0,fondlvl)
- pad = Controls.read()
- screen:fontPrint(police,10,15,"LVL 1",blanc)
- screen:fontPrint(police,10,40,"LVL 2",blanc)
- screen:fontPrint(police,10,65,"LVL 3",blanc)
- screen:fontPrint(police,10,90,"LVL 4",blanc)
- screen:fontPrint(police,10,115,"LVL 5",blanc)
- screen:fontPrint(police,10,140,"Retourner au Menu",blanc)
- if pad:up() and not oldpad:up() then selecteurlvl = selecteurlvl - 1 end
- if pad:down() and not oldpad:down() then selecteurlvl = selecteurlvl + 1 end
- if selecteurlvl > 6 then selecteurlvl = 1 end
- if selecteurlvl < 1 then selecteurlvl = 6 end
- if selecteurlvl == 1 then screen:fontPrint(police,10,15,"LVL 1",noir) end
- if selecteurlvl == 2 then screen:fontPrint(police,10,40,"LVL 2",noir) end
- if selecteurlvl == 3 then screen:fontPrint(police,10,65,"LVL 3",noir) end
- if selecteurlvl == 4 then screen:fontPrint(police,10,90,"LVL 4",noir) end
- if selecteurlvl == 5 then screen:fontPrint(police,10,115,"LVL 5",noir) end
- if selecteurlvl == 6 then screen:fontPrint(police,10,140,"LVL 5",noir) end
- if pad:cross() and not oldpad:cross() and selecteurlvl == 1 then endroit = "le lvl" end --creer ton endroit et met le nom tu peux aussi faire des dofiles ou des functions ^^
- if pad:cross() and not oldpad:cross() and selecteurlvl == 2 then endroit = "le lvl" end
- if pad:cross() and not oldpad:cross() and selecteurlvl == 3 then endroit = "le lvl" end
- if pad:cross() and not oldpad:cross() and selecteurlvl == 4 then endroit = "le lvl" end
- if pad:cross() and not oldpad:cross() and selecteurlvl == 5 then endroit = "le lvl" end
- if pad:cross() and not oldpad:cross() and selecteurlvl == 6 then endroit = "oo" end
- oldpad = pad
- screen.flip()
- screen.waitVblankStart()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement