funny animation.
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 2.2 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 3.0 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -18,5 +18,29 @@
|
|||||||
<key>duration</key>
|
<key>duration</key>
|
||||||
<real>1</real>
|
<real>1</real>
|
||||||
</dict>
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>duration</key>
|
||||||
|
<real>1</real>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>duration</key>
|
||||||
|
<real>1</real>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>duration</key>
|
||||||
|
<real>1</real>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>duration</key>
|
||||||
|
<real>1</real>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>duration</key>
|
||||||
|
<real>1</real>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>duration</key>
|
||||||
|
<real>1</real>
|
||||||
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
</plist>
|
</plist>
|
||||||
|
|||||||
@@ -59,11 +59,14 @@
|
|||||||
:game-player "'Worthy in wisdom, courage, and might,\nonly then with sword he'll fight.'"
|
:game-player "'Worthy in wisdom, courage, and might,\nonly then with sword he'll fight.'"
|
||||||
:game-player "I've often dreamed of pulling the sword myself.")
|
:game-player "I've often dreamed of pulling the sword myself.")
|
||||||
:choices ["Why don't you?"
|
:choices ["Why don't you?"
|
||||||
{:run #(actions/respond entities %
|
{:run #(do (actions/respond entities %
|
||||||
:game-player "I, of course, have the wisdom required for the task."
|
:game-player "I, of course, have the wisdom to do such a deed."
|
||||||
:game-player "But I'm not much of a warrior. I don't have the might required for the task."
|
:game-player "But I'm not much of a hero."
|
||||||
:game-player "The knights of Remington have muscles the size of tree trunks."
|
:game-player "I don't have the might or courage required to pull the sword and fulfill the prophecy. "
|
||||||
:game-player "I'd never be able to prove my strength.")
|
:game-player "The knights of Remington have muscles the size of tree trunks."
|
||||||
|
:game-player "But me...")
|
||||||
|
(actions/play-animation entities :game-player :flex)
|
||||||
|
(actions/do-dialogue entities :game-player "I'd never be able to prove my strength."))
|
||||||
:choices actions/previous-choices}
|
:choices actions/previous-choices}
|
||||||
"Something else."
|
"Something else."
|
||||||
{:choices actions/something-else}]}
|
{:choices actions/something-else}]}
|
||||||
@@ -123,6 +126,8 @@
|
|||||||
(aget game-player-talk-sheet 0 i)))
|
(aget game-player-talk-sheet 0 i)))
|
||||||
|
|
||||||
game-player-stand (animation 0.15 (for [i [0 0 0 0 0 0 0 0 0 0 0 1]]
|
game-player-stand (animation 0.15 (for [i [0 0 0 0 0 0 0 0 0 0 0 1]]
|
||||||
|
(aget game-player-talk-sheet 0 i)))
|
||||||
|
game-player-flex (animation 0.075 (for [i [0 0 4 4 5 5 5 5 5 5 5 6 7 8 7 9 7 8 7 9 7 8 7 9 7 8 7 9 7 8 7 9 7 8 7 9 6 5 5 4 4 0 0 0 0]]
|
||||||
(aget game-player-talk-sheet 0 i)))
|
(aget game-player-talk-sheet 0 i)))
|
||||||
trophy (utils/make-anim "inside-castle/trophy.png" [16 16] 0.1 (flatten [(repeat 50 0) 1 2 3 3 3 3 2 1]))]
|
trophy (utils/make-anim "inside-castle/trophy.png" [16 16] 0.1 (flatten [(repeat 50 0) 1 2 3 3 3 3 2 1]))]
|
||||||
(rooms/make :music :town-1
|
(rooms/make :music :town-1
|
||||||
@@ -158,8 +163,7 @@
|
|||||||
obtained-items (set/intersection #{:trophy :medal :kiss} (get-in @entities [:state :obtained-items]))]
|
obtained-items (set/intersection #{:trophy :medal :kiss} (get-in @entities [:state :obtained-items]))]
|
||||||
(if (= #{} missing-items)
|
(if (= #{} missing-items)
|
||||||
(pull-sword entities)
|
(pull-sword entities)
|
||||||
(try-to-pull-sword entities missing-items obtained-items)))))
|
(try-to-pull-sword entities missing-items obtained-items))))))}
|
||||||
)}
|
|
||||||
:sign {:box [125 140 165 155]
|
:sign {:box [125 140 165 155]
|
||||||
:script (actions/get-script entities
|
:script (actions/get-script entities
|
||||||
(actions/talk entities :ego "Ye Ol' Antique Shoppe."))}
|
(actions/talk entities :ego "Ye Ol' Antique Shoppe."))}
|
||||||
@@ -256,6 +260,7 @@
|
|||||||
:anim game-player-stand
|
:anim game-player-stand
|
||||||
:anim-start 0
|
:anim-start 0
|
||||||
:stand game-player-stand
|
:stand game-player-stand
|
||||||
|
:flex game-player-flex
|
||||||
:talk game-player-talk)}
|
:talk game-player-talk)}
|
||||||
:collision "inside-castle/collision.png"
|
:collision "inside-castle/collision.png"
|
||||||
:scale-fn (utils/scaler-fn-from-image "inside-castle/scale.png" 0.25 1.00)
|
:scale-fn (utils/scaler-fn-from-image "inside-castle/scale.png" 0.25 1.00)
|
||||||
|
|||||||
Reference in New Issue
Block a user