tick chop.

This commit is contained in:
2015-04-27 08:30:03 -07:00
parent 9a6dafef41
commit b96bcc2558
26 changed files with 91 additions and 3 deletions

View File

@@ -207,6 +207,8 @@
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)]))
swing-shovel (utils/make-anim "ego/swing-shovel.png" [70 70] 0.1 (range 9))
love (utils/make-anim "ego/love.png" [50 70] 0.1 (flatten [0 0 1 1 2 2 3 3 4 4 5 5 6 6 (repeat 10 7) (repeat 5 8) (repeat 5 7) (repeat 5 8) (repeat 5 7) (repeat 10 [23 24 25 24]) (repeat 30 9) 10 11 12 13 14 15 16 17 18 19 20 21 21 21 22 22 22 21 21 21 21 21 21 21 21 22 22 22 22 22 21 21 21 21 22 22 22 22 22 22 21 21 21 21 21 6 6 5 5 4 4 3 3 2 2 1 1 0]))
axe (utils/make-anim "ego/axe.png" [60 70] 0.15 (range 5))
axe-wood (utils/make-anim "ego/axe-wood.png" [60 70] 0.15 (range 11))
ego {:right {:walk walk-right
:stand stand-anim
@@ -248,6 +250,8 @@
:swing-shovel swing-shovel
:love love
:idea idea
:axe axe
:axe-wood axe-wood
}
:left {:walk (utils/flip walk-right)
:stand (utils/flip stand-anim)
@@ -279,7 +283,9 @@
:throw (utils/flip throw)
:swing-shovel (utils/flip swing-shovel)
:love (utils/flip love)
:idea (utils/flip idea)}
:idea (utils/flip idea)
:axe (utils/flip axe)
:axe-wood (utils/flip axe-wood)}
:baseline (- 240 (last start-pos))
:facing :right
:origin-x 9
@@ -367,6 +373,8 @@
:anim-merges {(get-in ego [:right :shock]) {:origin-x 15}
(get-in ego [:left :swing-shovel]) {:origin-x 26}
(get-in ego [:right :swing-shovel]) {:origin-x 26}
(get-in ego [:right :axe]) {:origin-x 17}
(get-in ego [:right :axe-wood]) {:origin-x 17}
(get-in ego [:left :love]) {:origin-x 36}
:default {:origin-x 9}})]
(actions/start-animation screen