Engine:
authorsmxx
Fri, 28 May 2010 12:47:17 +0000
changeset 3481 c385a7dad025
parent 3480 c4c3f3512404
child 3482 106d1f983b48
Engine: * Updated Flamethrower's hand graphic and added some animation
hedgewars/GearDrawing.inc
hedgewars/uConsts.pas
share/hedgewars/Data/Graphics/Hedgehog/amFlamethrower.png
--- a/hedgewars/GearDrawing.inc	Sun May 23 23:51:54 2010 +0000
+++ b/hedgewars/GearDrawing.inc	Fri May 28 12:47:17 2010 +0000
@@ -291,7 +291,7 @@
                     end;
                 defaultPos:= false
                 end;
-            gtFlamethrower: DrawRotated(sprHandFlamethrower, hx, hy, hwSign(Gear^.dX), aangle);
+            gtFlamethrower: DrawRotatedF(sprHandFlamethrower, hx, hy, (RealTicks div 125) mod 4, hwSign(Gear^.dX), aangle);
         end;
 
         case CurAmmoGear^.Kind of
@@ -404,7 +404,7 @@
                                   LongInt(leftX)+WorldDx)
                 end;
             amBee: DrawRotatedF(sprHandBee, hx, hy, (RealTicks div 125) mod 4, hwSign(Gear^.dX), aangle);
-            amFlamethrower: DrawRotated(sprHandFlamethrower, hx, hy, hwSign(Gear^.dX), aangle);
+            amFlamethrower: DrawRotatedF(sprHandFlamethrower, hx, hy, (RealTicks div 125) mod 4, hwSign(Gear^.dX), aangle);
         end;
 
         case amt of
--- a/hedgewars/uConsts.pas	Sun May 23 23:51:54 2010 +0000
+++ b/hedgewars/uConsts.pas	Fri May 28 12:47:17 2010 +0000
@@ -755,7 +755,7 @@
             (FileName:  'amCheese'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil;
             Width:  64; Height: 64; imageWidth: 0; imageHeight: 0; saveSurf: false), // sprHandCheese
             (FileName:  'amFlamethrower'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil;
-            Width:  64; Height: 64; imageWidth: 0; imageHeight: 0; saveSurf: false)  // sprHandFlamethrower
+            Width:  128; Height: 128; imageWidth: 0; imageHeight: 0; saveSurf: false)  // sprHandFlamethrower
             );
 
     Wavez: array [TWave] of record
Binary file share/hedgewars/Data/Graphics/Hedgehog/amFlamethrower.png has changed