merge.csv 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. # Merging separate animation files into a single LPC sprite sheet
  2. #
  3. # Usage:
  4. # sprsheet merge.csv output.png cast.png thrust.png walk.png slash.png bowing.png hurt.png
  5. # cast animation (7 frames, 1st input file)
  6. # up / north
  7. 64,64,0,0,0,0,0
  8. 64,64,64,0,64,0,0
  9. 64,64,128,0,128,0,0
  10. 64,64,192,0,192,0,0
  11. 64,64,256,0,256,0,0
  12. 64,64,320,0,320,0,0
  13. 64,64,384,0,384,0,0
  14. # left / west
  15. 64,64,0,64,0,64,0
  16. 64,64,64,64,64,64,0
  17. 64,64,128,64,128,64,0
  18. 64,64,192,64,192,64,0
  19. 64,64,256,64,256,64,0
  20. 64,64,320,64,320,64,0
  21. 64,64,384,64,384,64,0
  22. # down / south
  23. 64,64,0,128,0,128,0
  24. 64,64,64,128,64,128,0
  25. 64,64,128,128,128,128,0
  26. 64,64,192,128,192,128,0
  27. 64,64,256,128,256,128,0
  28. 64,64,320,128,320,128,0
  29. 64,64,384,128,384,128,0
  30. # right / east
  31. 64,64,0,192,0,192,0
  32. 64,64,64,192,64,192,0
  33. 64,64,128,192,128,192,0
  34. 64,64,192,192,192,192,0
  35. 64,64,256,192,256,192,0
  36. 64,64,320,192,320,192,0
  37. 64,64,384,192,384,192,0
  38. # thrust animation (8 frames, 2nd input file)
  39. # up / north
  40. 64,64,0,0,0,256,1
  41. 64,64,64,0,64,256,1
  42. 64,64,128,0,128,256,1
  43. 64,64,192,0,192,256,1
  44. 64,64,256,0,256,256,1
  45. 64,64,320,0,320,256,1
  46. 64,64,384,0,384,256,1
  47. 64,64,448,0,448,256,1
  48. # left / west
  49. 64,64,0,64,0,320,1
  50. 64,64,64,64,64,320,1
  51. 64,64,128,64,128,320,1
  52. 64,64,192,64,192,320,1
  53. 64,64,256,64,256,320,1
  54. 64,64,320,64,320,320,1
  55. 64,64,384,64,384,320,1
  56. 64,64,448,64,448,320,1
  57. # down / south
  58. 64,64,0,128,0,384,1
  59. 64,64,64,128,64,384,1
  60. 64,64,128,128,128,384,1
  61. 64,64,192,128,192,384,1
  62. 64,64,256,128,256,384,1
  63. 64,64,320,128,320,384,1
  64. 64,64,384,128,384,384,1
  65. 64,64,448,128,448,384,1
  66. # right / east
  67. 64,64,0,192,0,448,1
  68. 64,64,64,192,64,448,1
  69. 64,64,128,192,128,448,1
  70. 64,64,192,192,192,448,1
  71. 64,64,256,192,256,448,1
  72. 64,64,320,192,320,448,1
  73. 64,64,384,192,384,448,1
  74. 64,64,448,192,448,448,1
  75. # idle+walk animation (1+8 frames, 3rd input file)
  76. # up / north
  77. 64,64,0,0,0,512,2
  78. 64,64,64,0,64,512,2
  79. 64,64,128,0,128,512,2
  80. 64,64,192,0,192,512,2
  81. 64,64,256,0,256,512,2
  82. 64,64,320,0,320,512,2
  83. 64,64,384,0,384,512,2
  84. 64,64,448,0,448,512,2
  85. 64,64,512,0,512,512,2
  86. # left / west
  87. 64,64,0,64,0,576,2
  88. 64,64,64,64,64,576,2
  89. 64,64,128,64,128,576,2
  90. 64,64,192,64,192,576,2
  91. 64,64,256,64,256,576,2
  92. 64,64,320,64,320,576,2
  93. 64,64,384,64,384,576,2
  94. 64,64,448,64,448,576,2
  95. 64,64,512,64,512,576,2
  96. # down / south
  97. 64,64,0,128,0,640,2
  98. 64,64,64,128,64,640,2
  99. 64,64,128,128,128,640,2
  100. 64,64,192,128,192,640,2
  101. 64,64,256,128,256,640,2
  102. 64,64,320,128,320,640,2
  103. 64,64,384,128,384,640,2
  104. 64,64,448,128,448,640,2
  105. 64,64,512,128,512,640,2
  106. # right / east
  107. 64,64,0,192,0,704,2
  108. 64,64,64,192,64,704,2
  109. 64,64,128,192,128,704,2
  110. 64,64,192,192,192,704,2
  111. 64,64,256,192,256,704,2
  112. 64,64,320,192,320,704,2
  113. 64,64,384,192,384,704,2
  114. 64,64,448,192,448,704,2
  115. 64,64,512,192,512,704,2
  116. # slash animation (6 frames, 4th input file)
  117. # up / north
  118. 64,64,0,0,0,768,3
  119. 64,64,64,0,64,768,3
  120. 64,64,128,0,128,768,3
  121. 64,64,192,0,192,768,3
  122. 64,64,256,0,256,768,3
  123. 64,64,320,0,320,768,3
  124. # left / west
  125. 64,64,0,64,0,832,3
  126. 64,64,64,64,64,832,3
  127. 64,64,128,64,128,832,3
  128. 64,64,192,64,192,832,3
  129. 64,64,256,64,256,832,3
  130. 64,64,320,64,320,832,3
  131. # down / south
  132. 64,64,0,128,0,896,3
  133. 64,64,64,128,64,896,3
  134. 64,64,128,128,128,896,3
  135. 64,64,192,128,192,896,3
  136. 64,64,256,128,256,896,3
  137. 64,64,320,128,320,896,3
  138. # right / east
  139. 64,64,0,192,0,960,3
  140. 64,64,64,192,64,960,3
  141. 64,64,128,192,128,960,3
  142. 64,64,192,192,192,960,3
  143. 64,64,256,192,256,960,3
  144. 64,64,320,192,320,960,3
  145. # bowing animation (13 frames, 5th input file)
  146. # up / north
  147. 64,64,0,0,0,1024,4
  148. 64,64,64,0,64,1024,4
  149. 64,64,128,0,128,1024,4
  150. 64,64,192,0,192,1024,4
  151. 64,64,256,0,256,1024,4
  152. 64,64,320,0,320,1024,4
  153. 64,64,384,0,384,1024,4
  154. 64,64,448,0,448,1024,4
  155. 64,64,512,0,512,1024,4
  156. 64,64,576,0,576,1024,4
  157. 64,64,640,0,640,1024,4
  158. 64,64,704,0,704,1024,4
  159. 64,64,768,0,768,1024,4
  160. # left / west
  161. 64,64,0,64,0,1088,4
  162. 64,64,64,64,64,1088,4
  163. 64,64,128,64,128,1088,4
  164. 64,64,192,64,192,1088,4
  165. 64,64,256,64,256,1088,4
  166. 64,64,320,64,320,1088,4
  167. 64,64,384,64,384,1088,4
  168. 64,64,448,64,448,1088,4
  169. 64,64,512,64,512,1088,4
  170. 64,64,576,64,576,1088,4
  171. 64,64,640,64,640,1088,4
  172. 64,64,704,64,704,1088,4
  173. 64,64,768,64,768,1088,4
  174. # down / south
  175. 64,64,0,128,0,1152,4
  176. 64,64,64,128,64,1152,4
  177. 64,64,128,128,128,1152,4
  178. 64,64,192,128,192,1152,4
  179. 64,64,256,128,256,1152,4
  180. 64,64,320,128,320,1152,4
  181. 64,64,384,128,384,1152,4
  182. 64,64,448,128,448,1152,4
  183. 64,64,512,128,512,1152,4
  184. 64,64,576,128,576,1152,4
  185. 64,64,640,128,640,1152,4
  186. 64,64,704,128,704,1152,4
  187. 64,64,768,128,768,1152,4
  188. # right / east
  189. 64,64,0,192,0,1216,4
  190. 64,64,64,192,64,1216,4
  191. 64,64,128,192,128,1216,4
  192. 64,64,192,192,192,1216,4
  193. 64,64,256,192,256,1216,4
  194. 64,64,320,192,320,1216,4
  195. 64,64,384,192,384,1216,4
  196. 64,64,448,192,448,1216,4
  197. 64,64,512,192,512,1216,4
  198. 64,64,576,192,576,1216,4
  199. 64,64,640,192,640,1216,4
  200. 64,64,704,192,704,1216,4
  201. 64,64,768,192,768,1216,4
  202. # hurt animation (6 frames, 6th input file)
  203. # down / south
  204. 64,64,0,0,0,1280,5
  205. 64,64,64,0,64,1280,5
  206. 64,64,128,0,128,1280,5
  207. 64,64,192,0,192,1280,5
  208. 64,64,256,0,256,1280,5
  209. 64,64,320,0,320,1280,5