Loading
  1.  
  2.  
  3. template template_x1_8bpp_vehicle8(y,f) {
  4.     [ 0*64, 80*y, 64, 80, -15-32+16, -25-8, f]
  5.     [ 1*64, 80*y, 64, 80, -18-32+16, -22-12, f]
  6.     [ 2*64, 80*y, 64, 80, -16-32+16, -24-12, f]
  7.     [ 3*64, 80*y, 64, 80, -13-32+16, -23-12, f]
  8.     [ 4*64, 80*y, 64, 80, -15-32+16, -25-8, f]
  9.     [ 5*64, 80*y, 64, 80, -18-32+16, -22-12, f]
  10.     [ 6*64, 80*y, 64, 80, -16-32+16, -24-12, f]
  11.     [ 7*64, 80*y, 64, 80, -13-32+16, -23-12, f]
  12. }
  13.  
  14. template template_x1_32bpp_vehicle8(y,f) {
  15.     [ 0*64, 80*y, 64, 80, -15-32+16, -25-8,f]
  16.     [ 1*64, 80*y, 64, 80, -18-32+16, -22-12,f]
  17.     [ 2*64, 80*y, 64, 80, -16-32+16, -24-12,f]
  18.     [ 3*64, 80*y, 64, 80, -13-32+16, -23-12,f]
  19.     [ 4*64, 80*y, 64, 80, -15-32+16, -25-8,f]
  20.     [ 5*64, 80*y, 64, 80, -18-32+16, -22-12,f]
  21.     [ 6*64, 80*y, 64, 80, -16-32+16, -24-12,f]
  22.     [ 7*64, 80*y, 64, 80, -13-32+16, -23-12,f]
  23. }
  24.  
  25. template template_x4_32bpp_vehicle8(y,f) {
  26.     [ 0*256, 320*y, 256, 320, -60-128+64, -98-32,f]
  27.     [ 1*256, 320*y, 256, 320, -72-128+64, -89-48,f]
  28.     [ 2*256, 320*y, 256, 320, -64-128+64, -95-48,f]
  29.     [ 3*256, 320*y, 256, 320, -52-128+64, -91-48,f]
  30.    
  31.     [ 4*256, 320*y, 256, 320, -60-128+64, -98-32,f]
  32.     [ 5*256, 320*y, 256, 320, -72-128+64, -89-48,f]
  33.     [ 6*256, 320*y, 256, 320, -64-128+64, -95-48,f]
  34.     [ 7*256, 320*y, 256, 320, -52-128+64, -91-48,f]
  35. }
  36.  
  37.  
  38.  
  39.  
  40. spriteset(spriteset_train_GEAR_01) {
  41. template_x1_8bpp_vehicle8(0,"gfx/GEAR_01_x1_8bpp.png")
  42. template_x1_8bpp_vehicle8(1,"gfx/GEAR_01_x1_8bpp.png")
  43. template_x1_8bpp_vehicle8(2,"gfx/GEAR_01_x1_8bpp.png")
  44. template_x1_8bpp_vehicle8(3,"gfx/GEAR_01_x1_8bpp.png")
  45. template_x1_8bpp_vehicle8(4,"gfx/GEAR_01_x1_8bpp.png")
  46. template_x1_8bpp_vehicle8(5,"gfx/GEAR_01_x1_8bpp.png")
  47. template_x1_8bpp_vehicle8(6,"gfx/GEAR_01_x1_8bpp.png")
  48. template_x1_8bpp_vehicle8(7,"gfx/GEAR_01_x1_8bpp.png")
  49. template_x1_8bpp_vehicle8(8,"gfx/GEAR_01_x1_8bpp.png")
  50. template_x1_8bpp_vehicle8(9,"gfx/GEAR_01_x1_8bpp.png")
  51. template_x1_8bpp_vehicle8(10,"gfx/GEAR_01_x1_8bpp.png")
  52. template_x1_8bpp_vehicle8(11,"gfx/GEAR_01_x1_8bpp.png")
  53. template_x1_8bpp_vehicle8(12,"gfx/GEAR_01_x1_8bpp.png")
  54. template_x1_8bpp_vehicle8(13,"gfx/GEAR_01_x1_8bpp.png")
  55. template_x1_8bpp_vehicle8(14,"gfx/GEAR_01_x1_8bpp.png")
  56. template_x1_8bpp_vehicle8(15,"gfx/GEAR_01_x1_8bpp.png")
  57. }
  58.  
  59. alternative_sprites (spriteset_train_GEAR_01, ZOOM_LEVEL_NORMAL, BIT_DEPTH_32BPP) {
  60. template_x1_32bpp_vehicle8(0,"gfx/GEAR_01_x1_000.png")
  61. template_x1_32bpp_vehicle8(1,"gfx/GEAR_01_x1_000.png")
  62. template_x1_32bpp_vehicle8(2,"gfx/GEAR_01_x1_000.png")
  63. template_x1_32bpp_vehicle8(3,"gfx/GEAR_01_x1_000.png")
  64. template_x1_32bpp_vehicle8(4,"gfx/GEAR_01_x1_000.png")
  65. template_x1_32bpp_vehicle8(5,"gfx/GEAR_01_x1_000.png")
  66. template_x1_32bpp_vehicle8(6,"gfx/GEAR_01_x1_000.png")
  67. template_x1_32bpp_vehicle8(7,"gfx/GEAR_01_x1_000.png")
  68. template_x1_32bpp_vehicle8(8,"gfx/GEAR_01_x1_000.png")
  69. template_x1_32bpp_vehicle8(9,"gfx/GEAR_01_x1_000.png")
  70. template_x1_32bpp_vehicle8(10,"gfx/GEAR_01_x1_000.png")
  71. template_x1_32bpp_vehicle8(11,"gfx/GEAR_01_x1_000.png")
  72. template_x1_32bpp_vehicle8(12,"gfx/GEAR_01_x1_000.png")
  73. template_x1_32bpp_vehicle8(13,"gfx/GEAR_01_x1_000.png")
  74. template_x1_32bpp_vehicle8(14,"gfx/GEAR_01_x1_000.png")
  75. template_x1_32bpp_vehicle8(15,"gfx/GEAR_01_x1_000.png")
  76. }
  77.  
  78. alternative_sprites (spriteset_train_GEAR_01, ZOOM_LEVEL_IN_4X, BIT_DEPTH_32BPP) {
  79. template_x4_32bpp_vehicle8(0,"gfx/GEAR_01_000.png")
  80. template_x4_32bpp_vehicle8(1,"gfx/GEAR_01_000.png")
  81. template_x4_32bpp_vehicle8(2,"gfx/GEAR_01_000.png")
  82. template_x4_32bpp_vehicle8(3,"gfx/GEAR_01_000.png")
  83. template_x4_32bpp_vehicle8(4,"gfx/GEAR_01_000.png")
  84. template_x4_32bpp_vehicle8(5,"gfx/GEAR_01_000.png")
  85. template_x4_32bpp_vehicle8(6,"gfx/GEAR_01_000.png")
  86. template_x4_32bpp_vehicle8(7,"gfx/GEAR_01_000.png")
  87. template_x4_32bpp_vehicle8(8,"gfx/GEAR_01_000.png")
  88. template_x4_32bpp_vehicle8(9,"gfx/GEAR_01_000.png")
  89. template_x4_32bpp_vehicle8(10,"gfx/GEAR_01_000.png")
  90. template_x4_32bpp_vehicle8(11,"gfx/GEAR_01_000.png")
  91. template_x4_32bpp_vehicle8(12,"gfx/GEAR_01_000.png")
  92. template_x4_32bpp_vehicle8(13,"gfx/GEAR_01_000.png")
  93. template_x4_32bpp_vehicle8(14,"gfx/GEAR_01_000.png")
  94. template_x4_32bpp_vehicle8(15,"gfx/GEAR_01_000.png")
  95. }
  96.  
  97. switch(FEAT_TRAINS, SELF, switch_GEAR_01_animation, getbits(motion_counter,0,4)){
  98. 0:spriteset_train_GEAR_01(0);
  99. 1:spriteset_train_GEAR_01(1);
  100. 2:spriteset_train_GEAR_01(2);
  101. 3:spriteset_train_GEAR_01(3);
  102. 4:spriteset_train_GEAR_01(4);
  103. 5:spriteset_train_GEAR_01(5);
  104. 6:spriteset_train_GEAR_01(6);
  105. 7:spriteset_train_GEAR_01(7);
  106. 8:spriteset_train_GEAR_01(8);
  107. 9:spriteset_train_GEAR_01(9);
  108. 10:spriteset_train_GEAR_01(10);
  109. 11:spriteset_train_GEAR_01(11);
  110. 12:spriteset_train_GEAR_01(12);
  111. 13:spriteset_train_GEAR_01(13);
  112. 14:spriteset_train_GEAR_01(14);
  113. 15:spriteset_train_GEAR_01(15);
  114. }

Comments