=====DARLE COMIDA A LA RANA========

rana = "MOwO"
player = "I"
monedas = 0
animales = {
    G = "_O"
    T = "uO"
}

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

=======PLAYER========

player.spawn([4]"_")

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

====ANIMALES=====

if player touch [G]animales then
        [G]follow(player)
        posicion(-2) of player
if G, player touch rana then
        [G]backspace()
        monedas +1 1time
            save progress

if player touch [T]animales then
        [T]follow(player)
        posicion(-2) of player
if T, player touch rana then
        [T]backspace()
        monedas +1 1time
            save progress

======PASAR JUEGO=====

if monedas == 100 then
    print(GANASTE)
    backspace(ENTIRE GAME)
    game.finish
else monedas < 100 then
    print(sigue recolegtando!)

Embed on website

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