add idle shouryuuken animation
authoralfadur
Sun, 26 May 2019 19:12:16 +0300
changeset 15060 9dbbb4bc1dcd
parent 15059 5b245e8ed578
child 15061 984c427297bb
add idle shouryuuken animation
hedgewars/uGearsRender.pas
hedgewars/uTypes.pas
hedgewars/uVariables.pas
share/hedgewars/Data/Graphics/Hedgehog/amShoryuken.png
--- a/hedgewars/uGearsRender.pas	Sun May 26 17:53:14 2019 +0200
+++ b/hedgewars/uGearsRender.pas	Sun May 26 19:12:16 2019 +0300
@@ -884,6 +884,7 @@
                 amLandGun: DrawSpriteRotated(sprHandLandGun, hx, hy, sign, aangle);
                 amIceGun: DrawSpriteRotated(sprIceGun, hx, hy, sign, aangle);
                 amResurrector: DrawCircle(ox, oy, 98, 4, $F5, $DB, $35, $AA); // I'd rather not like to hardcode 100 here
+                amFirePunch: DrawSpriteRotatedF(sprFirepunch, hx + 6 * sign + 1, hy - 5, (RealTicks div 50) mod 16, sign, 0);
             end;
 
             case amt of
--- a/hedgewars/uTypes.pas	Sun May 26 17:53:14 2019 +0200
+++ b/hedgewars/uTypes.pas	Sun May 26 19:12:16 2019 +0300
@@ -94,7 +94,7 @@
             sprFlakeL, sprSDFlakeL, sprCloudL, sprSDCloudL, sprCreeper, sprHandCreeper, sprMinigun,
             sprSliderInverted, sprFingerBack, sprFingerBackInv, sprTargetPBack, sprTargetPBackInv,
             sprHealthHud, sprHealthPoisonHud, sprVampHud, sprKarmaHud, sprMedicHud, sprMedicPoisonHud,
-            sprHaloHud, sprInvulnHUD, sprAmPiano, sprHandLandGun
+            sprHaloHud, sprInvulnHUD, sprAmPiano, sprHandLandGun, sprFirepunch
             );
 
     // Gears that interact with other Gears and/or Land
--- a/hedgewars/uVariables.pas	Sun May 26 17:53:14 2019 +0200
+++ b/hedgewars/uVariables.pas	Sun May 26 19:12:16 2019 +0300
@@ -844,7 +844,9 @@
             (FileName: 'amPiano'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
             Width:  42; Height: 42; imageWidth: 0; imageHeight: 0; saveSurf: false; critical: true; checkSum: false; priority: tpMedium; getDimensions: false; getImageDimensions: true),// sprAmPiano
             (FileName:  'amLandGun'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil;
-            Width:  64; Height: 64; imageWidth: 0; imageHeight: 0; saveSurf: false; critical: true; checkSum: false; priority: tpMedium; getDimensions: false; getImageDimensions: true)// sprHandLandGun
+            Width:  64; Height: 64; imageWidth: 0; imageHeight: 0; saveSurf: false; critical: true; checkSum: false; priority: tpMedium; getDimensions: false; getImageDimensions: true), // sprHandLandGun
+            (FileName: 'amShoryuken'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil;
+            Width:  32; Height: 32; imageWidth: 0; imageHeight: 0; saveSurf: false; critical: true; checkSum: false; priority: tpMedium; getDimensions: false; getImageDimensions: true) // sprFirepunch
             );
 
 
Binary file share/hedgewars/Data/Graphics/Hedgehog/amShoryuken.png has changed