Merge branch 'master' of https://bitbucket.org/brycecovertoperations/advent
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.4 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.6 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
desktop/resources/ego/grow.pxa/4.pxi
Normal file
BIN
desktop/resources/ego/grow.pxa/4.pxi
Normal file
Binary file not shown.
@@ -18,5 +18,9 @@
|
|||||||
<key>duration</key>
|
<key>duration</key>
|
||||||
<real>1</real>
|
<real>1</real>
|
||||||
</dict>
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>duration</key>
|
||||||
|
<real>1</real>
|
||||||
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
</plist>
|
</plist>
|
||||||
|
|||||||
@@ -70,3 +70,5 @@
|
|||||||
(def flask-1-with-cream-of-mushroom {:name "Flask with cream of mushrooms soup" :value :flask-1-with-cream-of-mushroom :cursor :flask-with-contents
|
(def flask-1-with-cream-of-mushroom {:name "Flask with cream of mushrooms soup" :value :flask-1-with-cream-of-mushroom :cursor :flask-with-contents
|
||||||
:scripts {:slobber (make-strength-potion)}})
|
:scripts {:slobber (make-strength-potion)}})
|
||||||
|
|
||||||
|
|
||||||
|
(def medal {:name "Medal of strength" :value :medal :cursor :medal})
|
||||||
|
|||||||
@@ -35,7 +35,21 @@
|
|||||||
:warriors "Young esquire, thou art valiant in heart. "
|
:warriors "Young esquire, thou art valiant in heart. "
|
||||||
:warriors "Departeth henceforth and go hitherto, unto the gym.")}
|
:warriors "Departeth henceforth and go hitherto, unto the gym.")}
|
||||||
"I challenge you to a arm wrestling match to prove my strength."
|
"I challenge you to a arm wrestling match to prove my strength."
|
||||||
{:run #(actions/respond entities % :warriors "[TODO] You lose.")}
|
{:run (fn [msg]
|
||||||
|
(actions/respond entities msg :warriors "Prepare thyself, thy task is not for the feint of heart")
|
||||||
|
(if ((set (get-in @entities [:state :inventory])) items/flask-1-strength)
|
||||||
|
(do
|
||||||
|
(actions/do-dialogue entities :ego "One sec.")
|
||||||
|
(actions/play-animation entities :ego :grow)
|
||||||
|
(actions/do-dialogue entities
|
||||||
|
:warriors "[Todo animation here]"
|
||||||
|
:warriors "Congratulations young master. Thou art worthy in might."
|
||||||
|
:warriors "Take my medal of strength.")
|
||||||
|
(actions/give entities items/medal))
|
||||||
|
(do
|
||||||
|
(actions/do-dialogue entities
|
||||||
|
:warriors "[Todo animation here]"
|
||||||
|
:warriors "You lost, young master. Go hitherto, unto thy gym."))))}
|
||||||
"Something else."
|
"Something else."
|
||||||
{:choices actions/something-else}]
|
{:choices actions/something-else}]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -108,7 +108,7 @@
|
|||||||
(texture (aget fire-sheet 0 i))))
|
(texture (aget fire-sheet 0 i))))
|
||||||
fire-3-anim (animation 0.1 (for [i [0 1 2 2 2 2 3 2 3 2 2 2 4 5 6 7 2 2 2 8 9 10 11 2 2 2 2 2 2 2 2 0]]
|
fire-3-anim (animation 0.1 (for [i [0 1 2 2 2 2 3 2 3 2 2 2 4 5 6 7 2 2 2 8 9 10 11 2 2 2 2 2 2 2 2 0]]
|
||||||
(texture (aget fire-sheet 0 i))))
|
(texture (aget fire-sheet 0 i))))
|
||||||
grow (animation 0.1 (for [i [0 2 0 0 0 0 2 0 0 0 2 2 0 0 0 1 1 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 2 1 2 1 2 1 2 1 3 2 3 2 3 2 3]]
|
grow (animation 0.1 (for [i [0 1 1 1 1 1 1 1 1 1 1 0 0 0 0 3 0 0 0 0 3 0 0 0 3 3 0 0 0 2 2 0 0 2 0 0 2 0 2 0 2 0 2 0 2 0 2 3 2 3 2 3 2 3 2 4 3 4 3 4 3 4]]
|
||||||
(texture (aget grow-sheet 0 i))))
|
(texture (aget grow-sheet 0 i))))
|
||||||
ego {:right {:walk walk-right
|
ego {:right {:walk walk-right
|
||||||
:stand stand-anim
|
:stand stand-anim
|
||||||
@@ -153,7 +153,6 @@
|
|||||||
items/flask-1-with-cream-of-mushroom (actions/get-script entities (actions/talk entities :ego "Blegh! Gross!"))
|
items/flask-1-with-cream-of-mushroom (actions/get-script entities (actions/talk entities :ego "Blegh! Gross!"))
|
||||||
items/flask-1-strength (actions/get-script entities
|
items/flask-1-strength (actions/get-script entities
|
||||||
(actions/talk entities :ego "I'll just take a sip!")
|
(actions/talk entities :ego "I'll just take a sip!")
|
||||||
(actions/talk entities :ego "Woah! I feel something!!")
|
|
||||||
(actions/play-animation entities :ego :grow :stop? false))
|
(actions/play-animation entities :ego :grow :stop? false))
|
||||||
items/recipe (actions/get-script entities (actions/do-dialogue entities
|
items/recipe (actions/get-script entities (actions/do-dialogue entities
|
||||||
:ego "The recipe says:"
|
:ego "The recipe says:"
|
||||||
@@ -227,7 +226,7 @@
|
|||||||
:inside-fangald (make-music "inside-fangald.ogg")}
|
:inside-fangald (make-music "inside-fangald.ogg")}
|
||||||
:state {:object nil
|
:state {:object nil
|
||||||
:active? true
|
:active? true
|
||||||
:inventory [items/flask-1-strength]
|
:inventory [items/grass items/flask-1-strength]
|
||||||
:clues #{}
|
:clues #{}
|
||||||
:mints-eaten 0}
|
:mints-eaten 0}
|
||||||
:actions {:object nil
|
:actions {:object nil
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
(let [{:keys [x y]} (input->screen screen {:x (:input-x screen) :y (:input-y screen)})]
|
(let [{:keys [x y]} (input->screen screen {:x (:input-x screen) :y (:input-y screen)})]
|
||||||
(println (:input-x screen) (:input-y screen) "->" x y)))
|
(println (:input-x screen) (:input-y screen) "->" x y)))
|
||||||
|
|
||||||
(def +all-cursors+ [:main :wool :mushrooms :carrot :right :down :left :up :flask :flask-with-contents :trophy :stool :stick :cat-toy :balloon :frog-legs :teddy :portrait :recipe :glass-eye :motivational-tapes :used-earplugs :grass :slobber :flask-with-strength])
|
(def +all-cursors+ [:main :wool :mushrooms :carrot :right :down :left :up :flask :flask-with-contents :trophy :stool :stick :cat-toy :balloon :frog-legs :teddy :portrait :recipe :glass-eye :motivational-tapes :used-earplugs :grass :slobber :flask-with-strength :medal])
|
||||||
|
|
||||||
(defn cursor [filename which]
|
(defn cursor [filename which]
|
||||||
(let [scale 2
|
(let [scale 2
|
||||||
|
|||||||
Reference in New Issue
Block a user