Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Menu Principal de TDBD--
- --Versión 3 Final--
- opcionactual = 1
- fondox = 0
- letrerox = 141
- mensaje1x = 0
- icono1x = 92
- icono2x = 240
- icono3x = 386
- sentido = "aparecer"
- a=0
- image.center(resplandor1)
- image.center(resplandor2)
- image.center(resplandor3)
- image.center(icono1)
- image.center(icono2)
- image.center(icono3)
- while true do
- controls.read()
- image.blit(fondox,0,fondo)
- image.blit(letrerox,9,letrero)
- image.blit(mensaje1x,226,mensaje1)
- image.blit(icono1x,155,icono1)
- image.blit(icono2x,155,icono2)
- image.blit(icono3x,155,icono3)
- if opcionactual == 1 then
- image.blend(icono1x,154,resplandor1,a)
- end
- if controls.press("right") then
- opcionactual = opcionactual +1
- end
- if controls.press("left") then
- opcionactual = opcionactual -1
- end
- --if controls.press("cross") and opcionactual == 1 then
- -----------------------------------------------------
- --end
- --if controls.press("cross") and opcionactual == 2 then
- -----------------------------------------------------
- --end
- --if controls.press("cross") and opcionactual == 3 then
- -----------------------------------------------------
- --end
- if sentido =="aparecer" then a=a+1 end
- if sentido =="desaparecer" then a=a-1 end
- if a<=0 then sentido = "aparecer" end
- if a>=255 then sentido = "desaparecer" end
- if opcionactual <=0 then
- opcionactual = 3
- end
- if opcionactual >=4 then
- opcionactual = 1
- end
- screen.flip()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement