Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --se cargan imagenes
- fon1 = image.load("imagenes/fon1.png")
- fon2 = image.load("imagenes/fon2.png")
- fon3 = image.load("imagenes/fon3.png")
- fon4 = image.load("imagenes/fon4.png")
- mas = 1
- menu = function()
- if mas == 1 then
- image.blit(0,0,fon1)
- elseif mas == 2 then
- image.blit(0,0,fon2)
- elseif mas == 3 then
- image.blit(0,0,fon3)
- elseif mas == 4 then
- image.blit(0,0,fon4)
- end
- if controls.press("up") then
- mas = mas - 1
- end
- if controls.press("down") then
- mas = mas + 1
- end
- if mas >4 then
- mas = 1
- end
- if mas <1 then
- mas = 4
- end
- if controls.press("cross") then
- if mas == 1 then
- dofile("juego.lua")
- elseif mas == 2 then
- opciones()
- elseif mas == 3 then
- creditos()
- elseif mas == 4 then
- os.quit()
- end
- end
- end
- while true do
- controls.read()
- menu()
- screen.flip()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement