animation.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. {
  2. "version": 1,
  3. "notes": "Procedural sprite motion plus transparent VFX frame strips. No directional skeletal animation is implied.",
  4. "units": "430-wide gameplay coordinates; multiply by 750/430 for reference UI",
  5. "enemy": {
  6. "run": {
  7. "duration": 0.45,
  8. "loop": true,
  9. "positionY": [
  10. 0,
  11. -1.3,
  12. 0,
  13. 1.3,
  14. 0
  15. ],
  16. "mirrorX": "movement.x < 0"
  17. },
  18. "fly": {
  19. "duration": 0.78,
  20. "loop": true,
  21. "positionY": [
  22. 0,
  23. -3,
  24. 0,
  25. 3,
  26. 0
  27. ]
  28. },
  29. "hit": {
  30. "duration": 0.12,
  31. "brightness": [
  32. 1.6,
  33. 1
  34. ]
  35. },
  36. "death": {
  37. "duration": 0.25,
  38. "opacity": [
  39. 1,
  40. 0
  41. ],
  42. "scale": [
  43. 1,
  44. 0.85
  45. ]
  46. }
  47. },
  48. "tower": {
  49. "recoil": {
  50. "duration": 0.12,
  51. "positionY": [
  52. 0,
  53. 2,
  54. 0
  55. ]
  56. },
  57. "levelUp": {
  58. "duration": 0.55,
  59. "scale": [
  60. 1,
  61. 1.12,
  62. 1
  63. ]
  64. }
  65. },
  66. "ui": {
  67. "pressed": {
  68. "duration": 0.1,
  69. "positionY": [
  70. 0,
  71. 2
  72. ],
  73. "brightness": 0.9
  74. },
  75. "popup": {
  76. "duration": 0.2,
  77. "positionY": [
  78. 8,
  79. 0
  80. ],
  81. "scale": [
  82. 0.97,
  83. 1
  84. ],
  85. "opacity": [
  86. 0,
  87. 1
  88. ]
  89. }
  90. },
  91. "effects": [
  92. {
  93. "id": "fx.impact",
  94. "source": "assets/fx/impact.svg",
  95. "file": "assets/fx/impact.png",
  96. "width": 1024,
  97. "height": 128,
  98. "transparent": true,
  99. "frames": 8,
  100. "grid": [
  101. 8,
  102. 1
  103. ],
  104. "fps": 16,
  105. "pivot": [
  106. 0.5,
  107. 0.5
  108. ],
  109. "loop": false,
  110. "nineSlice": [
  111. 0,
  112. 0,
  113. 0,
  114. 0
  115. ]
  116. },
  117. {
  118. "id": "fx.frost",
  119. "source": "assets/fx/frost.svg",
  120. "file": "assets/fx/frost.png",
  121. "width": 1024,
  122. "height": 128,
  123. "transparent": true,
  124. "frames": 8,
  125. "grid": [
  126. 8,
  127. 1
  128. ],
  129. "fps": 16,
  130. "pivot": [
  131. 0.5,
  132. 0.5
  133. ],
  134. "loop": false,
  135. "nineSlice": [
  136. 0,
  137. 0,
  138. 0,
  139. 0
  140. ]
  141. },
  142. {
  143. "id": "fx.repair",
  144. "source": "assets/fx/repair.svg",
  145. "file": "assets/fx/repair.png",
  146. "width": 1024,
  147. "height": 128,
  148. "transparent": true,
  149. "frames": 8,
  150. "grid": [
  151. 8,
  152. 1
  153. ],
  154. "fps": 16,
  155. "pivot": [
  156. 0.5,
  157. 0.5
  158. ],
  159. "loop": false,
  160. "nineSlice": [
  161. 0,
  162. 0,
  163. 0,
  164. 0
  165. ]
  166. },
  167. {
  168. "id": "fx.muzzle",
  169. "source": "assets/fx/muzzle.svg",
  170. "file": "assets/fx/muzzle.png",
  171. "width": 1024,
  172. "height": 128,
  173. "transparent": true,
  174. "frames": 8,
  175. "grid": [
  176. 8,
  177. 1
  178. ],
  179. "fps": 16,
  180. "pivot": [
  181. 0.5,
  182. 0.5
  183. ],
  184. "loop": false,
  185. "nineSlice": [
  186. 0,
  187. 0,
  188. 0,
  189. 0
  190. ]
  191. },
  192. {
  193. "id": "fx.portal",
  194. "source": "assets/fx/portal.svg",
  195. "file": "assets/fx/portal.png",
  196. "width": 1024,
  197. "height": 128,
  198. "transparent": true,
  199. "frames": 8,
  200. "grid": [
  201. 8,
  202. 1
  203. ],
  204. "fps": 12,
  205. "pivot": [
  206. 0.5,
  207. 0.5
  208. ],
  209. "loop": true,
  210. "nineSlice": [
  211. 0,
  212. 0,
  213. 0,
  214. 0
  215. ]
  216. }
  217. ]
  218. }