====================SLIME=RANCHER================
===================VARIABLES=====================
map = "_ C _ P _ _ V _ _ _!o _ _ _ _ _ _ _ _ s _ _ _ _ _ _ _ _ _ _
I _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ s _ _ _ _ _ _ _ _ _ _ _ _
I _ _ _ _ _ _ _ _ _!o _ _ _ _ _ _ _ _ _ _ _ _ s _ _ _ _ _ _"
personaje = "P"
casa = "C"
slimes = "s"
paredes = "!"
jaulas = "I"
carnes = "o"
sports = "*"
tiendaDEsports = "V"
estado = ""
alcancilla = 0
inventario = 0
end
===================MOVIMIENTO=P===================
personaje
+1 == D
-1 == A
/1 == S
x1 == W
yea "_" + "P"
"_" backspace(automatic)
yea "_" - "P"
"_" restablecer(automatic)
end
================MOVIMIENTO=S====================
slimes
+1, -1, /1, x1 random
yea "_" + "s"
"_" backspace(automatic)
yea "_" - "s"
"_" backspace(automatic)
end
====================FUNCIONUNO=GUARDAR===============
function guardar
yea "s", "o", "*" is close("_ _" ,"_") "P"
and "P" precioned == "E"
after of "guardar" == estado
backspace(automatic("s", "o", "*"))
inventario +1 time1
print(guardaste un recurso!)
later
===========================SACAR=============================
function sacar
ejpl: inventario -1 time1
yea inventario = 0 npn
yea "P" precioned == "E"
after of "guardar" == estado
restablecer(slimes, carnes, sports)
posicion random +1 -1 /1 x1 of (P)
inventario -1 time1
yea inventario = 0 npn -----no pasa nada = npn
print(sacaste un recurso!)
=================ALIMENTAR=====================
inventario contiene("o")
and sacar
yea "s", "I" is close ("_") "P"
"o" backspace(automatic)
and crear("*") is close ("_") "P" time1
end
=======================VENDERSPORTS=======================
valorsports = 20
yea sacar("*")
and "*" near "V"
"*" backspace(automatic)
and alcancilla +20 time1
To embed this project on your website, copy the following code and paste it into your website's HTML: