Autosaving
This commit is contained in:
@@ -33,14 +33,14 @@
|
||||
:garden {:box [103 170 178 200]
|
||||
:script (actions/get-script
|
||||
entities
|
||||
(if (actions/has-item? @entities items/carrot)
|
||||
(if (actions/has-item? entities :carrot)
|
||||
(actions/talk entities :ego "If I steal any more, I might get caught.")
|
||||
(do
|
||||
(actions/walk-to entities :ego [128 180])
|
||||
(actions/talk entities :ego "Hey! Carrots.")
|
||||
(actions/play-animation entities :ego :squat)
|
||||
(actions/talk entities :ego "No one will notice one missing.")
|
||||
(actions/give entities items/carrot))))}
|
||||
(actions/give entities :carrot))))}
|
||||
:peddler {:box [110 90 128 146]
|
||||
:script (actions/get-script
|
||||
entities
|
||||
@@ -95,7 +95,7 @@
|
||||
:peddler "If you can bring me a nice kid's toy, I will give you the tapes."))}
|
||||
"Nevermind." {:run #(actions/respond entities % :peddler "Goodbye, sir.")}]}))
|
||||
:scripts {:teddy (actions/get-script entities
|
||||
(actions/remove-item entities items/teddy)
|
||||
(actions/remove-item entities :teddy)
|
||||
(actions/do-dialogue entities
|
||||
:peddler "That is the choicest of teddy bears!"
|
||||
:peddler "True to my word, I will give you one of my wares."
|
||||
@@ -103,15 +103,15 @@
|
||||
(actions/present-choices entities
|
||||
{:choices ["The glass eye."
|
||||
{:run #(do (actions/respond entities % :peddler "Of course sir. Here you go.")
|
||||
(actions/give entities items/glass-eye))}
|
||||
(actions/give entities :glass-eye))}
|
||||
"The motivational tapes."
|
||||
{:run #(do (actions/respond entities % :peddler "Of course sir. Here you go.")
|
||||
(actions/give entities items/motivational-tapes))}
|
||||
(actions/give entities :motivational-tapes))}
|
||||
"The used earplugs."
|
||||
{:run #(do (actions/respond entities % :peddler "Of course sir. Here you go.")
|
||||
(actions/give entities items/used-earplugs))}]})
|
||||
(actions/give entities :used-earplugs))}]})
|
||||
(actions/talk entities :peddler "And, of course, here is your balloon.")
|
||||
(actions/give entities items/balloon)
|
||||
(actions/give entities :balloon)
|
||||
(actions/talk entities :peddler "Thank you for your business!"))}}}
|
||||
:layers [(assoc (texture "outside-castle/background.png") :x 0 :y 0 :baseline 0)]
|
||||
:entities {:peddler (actions/start-animation screen
|
||||
@@ -124,8 +124,8 @@
|
||||
:scripts {:grass (actions/get-script entities
|
||||
(actions/walk-to entities :ego [168 150] :face :right)
|
||||
(actions/play-animation entities :ego :reach)
|
||||
(actions/remove-item entities items/grass)
|
||||
(actions/remove-item entities :grass)
|
||||
(actions/talk entities :ego "Eww! He slobbered on my hand.")
|
||||
(actions/give entities items/slobber))})}
|
||||
(actions/give entities :slobber))})}
|
||||
:collision "outside-castle/collision.png"
|
||||
:scale-fn (utils/scaler-fn-with-baseline 110 0.10 1.00))))
|
||||
|
||||
Reference in New Issue
Block a user