jugador = "I"
REYdeFuego = {
"mO"
vida = 10
}
MAP1 = {
"_ _ _ _ _ _"
"_ _ _ _ _ _"
"_ _ _ _ _ _"
}
MAP2 = {
"_ _ _ _ _ _ _"
"_ _ _ _ _ _ _"
}
===========controles=============
jugador.spawn(MAP1[1"_"])
if whenK "W" ---> (0,+1)
if whenK "A" ---> (-1,0)
if whenK "S" ---> (0,-1)
if whenK "D" ---> (+1,0)
if jugador.touch MAP1[18"_"] then
jugador.spawn(MAP2[1"_"])
============programacion=del=rey======
REYdeFuego.spawn(MAP2[14"_"])
poderes = {
explosion
disparo
}
while true do
wait(3)
random(poderes)
end
if jugador.touch REYdeFuego then
backspace(jugador)
if explosion then
REYdeFuego = ftg(5) pos[9"_"]
bala = "="
bala.follow(jugador)
if jugador.touch bala then
backspace(jugador)
if disparo then
bala.spawn
bala(1)
=========como matar al rey=============
if whenK "E" ---> REYdeFuego.vida = vida -1
end
end
To embed this project on your website, copy the following code and paste it into your website's HTML: