Engine:
authorsmxx
Sat, 27 Mar 2010 14:57:41 +0000
changeset 3110 c8d7c852e26a
parent 3109 06c089cb739c
child 3111 38e0f05afbdb
Engine: * Fixed new animations/sprites for homing bee
hedgewars/uConsts.pas
hedgewars/uGears.pas
hedgewars/uWorld.pas
share/hedgewars/Data/Graphics/Hedgehog/amBee.png
--- a/hedgewars/uConsts.pas	Sat Mar 27 14:55:59 2010 +0000
+++ b/hedgewars/uConsts.pas	Sat Mar 27 14:57:41 2010 +0000
@@ -76,7 +76,7 @@
             sprAmTeleport, sprSplash, sprDroplet, sprBirdy, sprHandCake, sprHandConstruction,
             sprHandGrenade, sprHandMelon, sprHandMortar, sprHandSkip, sprHandCluster,
             sprHandDynamite, sprHandHellish, sprHandMine, sprHandSeduction, sprHandVamp,
-            sprBigExplosion, sprSmokeRing, sprBeeTrace, sprEgg);
+            sprBigExplosion, sprSmokeRing, sprBeeTrace, sprEgg, sprTargetBee, sprHandBee);
 
     TGearType = (gtAmmo_Bomb, gtHedgehog, gtAmmo_Grenade, gtHealthTag, // 3
             gtGrave, gtBee, gtShotgunShot, gtPickHammer, gtRope, // 8
@@ -726,7 +726,11 @@
             (FileName:  'BeeTrace'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
             Width:  16; Height: 16; imageWidth: 0; imageHeight: 0; saveSurf: false), // sprBeeTrace
             (FileName:  'Egg'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
-            Width:  8; Height: 8; imageWidth: 0; imageHeight: 0; saveSurf: false) // sprEgg
+            Width:  8; Height: 8; imageWidth: 0; imageHeight: 0; saveSurf: false), // sprEgg
+            (FileName:  'TargetBee'; Path: ptGraphics; AltPath: ptNone; Texture: nil; Surface: nil;
+            Width:  32; Height: 32; imageWidth: 0; imageHeight: 0; saveSurf: false), // sprTargetBee
+            (FileName:  'amBee'; Path: ptHedgehog; AltPath: ptNone; Texture: nil; Surface: nil;
+            Width:  128; Height: 128; imageWidth: 0; imageHeight: 0; saveSurf: false) // sprHandBee
             );
 
     Wavez: array [TWave] of record
--- a/hedgewars/uGears.pas	Sat Mar 27 14:55:59 2010 +0000
+++ b/hedgewars/uGears.pas	Sat Mar 27 14:57:41 2010 +0000
@@ -1247,7 +1247,8 @@
                                   cWaterLine+WorldDy,
                                   LongInt(leftX)+WorldDx)
                 end;
-//            amBee: DrawRotated(sprHandBee, hx, hy, hwSign(Gear^.dX), aangle);
+            //amBee: DrawRotatedF(sprHandBee, hx, hy, (RealTicks div 125) mod 4, hwSign(Gear^.dX), aangle);
+            amBee: DrawRotatedF(sprHandBee, hx, hy, 0, hwSign(Gear^.dX), aangle);
         end;
 
         case amt of
--- a/hedgewars/uWorld.pas	Sat Mar 27 14:55:59 2010 +0000
+++ b/hedgewars/uWorld.pas	Sat Mar 27 14:57:41 2010 +0000
@@ -530,9 +530,9 @@
     begin
     with PHedgehog(CurrentHedgehog)^ do
         begin
-//        if (Ammo^[CurSlot, CurAmmo].AmmoType = amBee) then
-//            DrawRotatedF(sprTargetBee, TargetPoint.X + WorldDx, TargetPoint.Y + WorldDy, 0, 0, (RealTicks shr 3) mod 360)
-//        else
+        if (Ammo^[CurSlot, CurAmmo].AmmoType = amBee) then
+            DrawRotatedF(sprTargetBee, TargetPoint.X + WorldDx, TargetPoint.Y + WorldDy, 0, 0, (RealTicks shr 3) mod 360)
+        else
             DrawRotatedF(sprTargetP, TargetPoint.X + WorldDx, TargetPoint.Y + WorldDy, 0, 0, (RealTicks shr 3) mod 360);
         end;
     end;
Binary file share/hedgewars/Data/Graphics/Hedgehog/amBee.png has changed