#Variablesdefineenergy=100defineplace_items=[ ("park", [SetVariable("energy", energy - 10), Jump("place1")]),("home",Jump("place2"))]#Thegamestartshere.labelstart:jumpplace_selectlabelplace_select:"I have [energy] energy.""Where should I go?"callplacereturnlabelplace1:"Going to the park!""I found a mysterious tunnel."#edittheplace_itemstoremoveparkandaddtunnel$place_items=remove_place(place_items,"park")$place_items=add_place(place_items,"tunnel",[SetVariable("energy", energy - 20), Jump("place3")])jumpplace_selectlabelplace2:"I'm tired, let's go home.""I have [energy] energy."returnlabelplace3:"Entering the tunnel - it's deeper than I thought..."jumpplace_select
Comments (0)
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.