===escapa del monstro====

player = "O"
monstro = "M"

map = {"_ _ _ _ _ _"
    "_ _ _ _ _ _"
    "_ _ _ _ _ _"}

===jugador====

player.spawn([1]"_")

if when key(A)
    player([-1]"_")
    
if when key(D)
    player([+1]"_")

if when key(W)
    player([+1a]"_")

if when key(S)
    player([-1a]"_")

end

==MONSTRO==

monstro.spawn([18]"_")
monstro.follow(player)
    ftg.1S

==funcion==

if monstro.toucht player then
            player(backspace)

end

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: