This commit is contained in:
2015-03-19 21:22:13 -07:00
parent 2d946c6653
commit 51f4ad6518
13 changed files with 41 additions and 3 deletions

View File

@@ -351,6 +351,7 @@
(leave-sheep entities))
(do
(actions/talk entities :ego "Come here mama sheep!")
(actions/play-animation entities :ego :throw)
(actions/play-animation entities :ego :sigh)
(actions/talk entities :ego "She's too far away for me to pet her.")))))

View File

@@ -199,6 +199,7 @@
sigh (utils/make-anim "ego/sigh.png" [18 36] 0.08 [0 0 0 0 1 1 1 2 3 4 5 6 7 8 8 8 8 8 8 8 8 8 0 0 0 0 ])
glad (utils/make-anim "ego/glad.png" [20 46] 0.04 (flatten [0 1 2 3 4 (repeat 8 [5 5 5]) (repeat 20 0)]))
milk (utils/make-anim "ego/squat.png" [18 36] 0.05 [0 1 2 2 3 3 3 3 3 3 6 5 6 5 6 5 6 5 6 5 6 5 6 5 6 5 6 5 6 5 3 3 3 3 3 3 3 3 3 3 3 2 1 0])
throw (utils/make-anim "ego/throw.png" [18 36] 0.04 (flatten [[(repeat 5 0) (repeat 10 1)] (repeat 3 [2 2 2 3 3 3 4 4 4 5 5 5]) (repeat 5 [2 2 3 3 4 4 5 5]) (repeat 10 [2 3 4 5]) [2 3 3] (repeat 15 6)]))
ego {:right {:walk walk-right
:stand stand-anim
@@ -235,7 +236,8 @@
:scared-walk scared-walk
:sigh sigh
:glad glad
:milk milk}
:milk milk
:throw throw}
:left {:walk (utils/flip walk-right)
:stand (utils/flip stand-anim)
:talk (utils/flip talk-anim)
@@ -262,7 +264,8 @@
:pant (utils/flip pant)
:sigh (utils/flip sigh)
:glad (utils/flip glad)
:milk (utils/flip milk)}
:milk (utils/flip milk)
:throw (utils/flip throw)}
:baseline (- 240 (last start-pos))
:facing :right
:origin-x 9