hedgewars/uGears.pas
changeset 1863 705c01571196
parent 1861 98de5dc5fda7
child 1865 ebc6dfca60d4
equal deleted inserted replaced
1862:7f303aa066da 1863:705c01571196
  1202                                         i:= (GameTicks shr 6) mod 64;
  1202                                         i:= (GameTicks shr 6) mod 64;
  1203                                         if i > 18 then i:= 0;
  1203                                         if i > 18 then i:= 0;
  1204                                         DrawSprite(sprCase, hwRound(Gear^.X) - 24 + WorldDx, hwRound(Gear^.Y) - 24 + WorldDy, i);
  1204                                         DrawSprite(sprCase, hwRound(Gear^.X) - 24 + WorldDx, hwRound(Gear^.Y) - 24 + WorldDy, i);
  1205                                         end;
  1205                                         end;
  1206                          posCaseHealth: begin
  1206                          posCaseHealth: begin
  1207                                         i:= (GameTicks shr 6) mod 64;
  1207                                         i:= ((GameTicks shr 6) + 38) mod 64;
  1208                                         if i > 12 then i:= 0;
  1208                                         if i > 13 then i:= 0;
  1209                                         DrawSprite(sprFAid, hwRound(Gear^.X) - 24 + WorldDx, hwRound(Gear^.Y) - 24 + WorldDy, i);
  1209                                         DrawSprite(sprFAid, hwRound(Gear^.X) - 24 + WorldDx, hwRound(Gear^.Y) - 24 + WorldDy, i);
  1210                                         end;
  1210                                         end;
  1211                          posCaseUtility: begin
  1211                          posCaseUtility: begin
  1212                                         DrawSprite(sprUtility, hwRound(Gear^.X) - 20 + WorldDx, hwRound(Gear^.Y) - 16 + WorldDy, 0);
  1212                                         i:= (GameTicks shr 6) mod 70;
       
  1213                                         if i > 23 then i:= 0;
       
  1214                                         DrawSprite(sprUtility, hwRound(Gear^.X) - 24 + WorldDx, hwRound(Gear^.Y) - 24 + WorldDy, i);
  1213                                         end;
  1215                                         end;
  1214                          end;
  1216                          end;
  1215         gtDynamite: DrawSprite2(sprDynamite, hwRound(Gear^.X) - 16 + WorldDx, hwRound(Gear^.Y) - 25 + WorldDy, Gear^.Tag and 1, Gear^.Tag shr 1);
  1217         gtDynamite: DrawSprite2(sprDynamite, hwRound(Gear^.X) - 16 + WorldDx, hwRound(Gear^.Y) - 25 + WorldDy, Gear^.Tag and 1, Gear^.Tag shr 1);
  1216      gtClusterBomb: DrawRotated(sprClusterBomb, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, 0, Gear^.DirAngle);
  1218      gtClusterBomb: DrawRotated(sprClusterBomb, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, 0, Gear^.DirAngle);
  1217          gtCluster: DrawSprite(sprClusterParticle, hwRound(Gear^.X) - 8 + WorldDx, hwRound(Gear^.Y) - 8 + WorldDy, 0);
  1219          gtCluster: DrawSprite(sprClusterParticle, hwRound(Gear^.X) - 8 + WorldDx, hwRound(Gear^.Y) - 8 + WorldDy, 0);