1776 glColor4f(1, 1, 1, -1.0 * (power(Gear^.Timer/250, 4) - 1)); |
1780 glColor4f(1, 1, 1, -1.0 * (power(Gear^.Timer/250, 4) - 1)); |
1777 DrawRotatedTextureF(SpritesData[sprBigExplosion].Texture, 0.85 * (-power(2, -10 * Int(Gear^.Timer)/250) + 1) + 0.4, 0, 0, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, 0, 1, 385, 385, Gear^.Angle); |
1781 DrawRotatedTextureF(SpritesData[sprBigExplosion].Texture, 0.85 * (-power(2, -10 * Int(Gear^.Timer)/250) + 1) + 0.4, 0, 0, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, 0, 1, 385, 385, Gear^.Angle); |
1778 glColor4f(1, 1, 1, 1); |
1782 glColor4f(1, 1, 1, 1); |
1779 end; |
1783 end; |
1780 gtEgg: DrawRotatedTextureF(SpritesData[sprEgg].Texture, 1, 0, 0, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, 0, 1, 16, 16, Gear^.DirAngle); |
1784 gtEgg: DrawRotatedTextureF(SpritesData[sprEgg].Texture, 1, 0, 0, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, 0, 1, 16, 16, Gear^.DirAngle); |
|
1785 gtPiano: begin |
|
1786 if (Gear^.State and gstDrowning) = 0 then |
|
1787 begin |
|
1788 glColor4f(1, 1, 1, 0.0625); |
|
1789 for i:= 8 downto 1 do |
|
1790 DrawRotatedTextureF(SpritesData[sprPiano].Texture, 1, 0, 0, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy - hwRound(Gear^.dY * 4 * i), 0, 1, 128, 128, 0); |
|
1791 glColor4f(1, 1, 1, 1) |
|
1792 end; |
|
1793 DrawRotatedTextureF(SpritesData[sprPiano].Texture, 1, 0, 0, hwRound(Gear^.X) + WorldDx, hwRound(Gear^.Y) + WorldDy, 0, 1, 128, 128, 0); |
|
1794 end; |
1781 end; |
1795 end; |
1782 if Gear^.RenderTimer and (Gear^.Tex <> nil) then DrawCentered(hwRound(Gear^.X) + 8 + WorldDx, hwRound(Gear^.Y) + 8 + WorldDy, Gear^.Tex); |
1796 if Gear^.RenderTimer and (Gear^.Tex <> nil) then DrawCentered(hwRound(Gear^.X) + 8 + WorldDx, hwRound(Gear^.Y) + 8 + WorldDy, Gear^.Tex); |
1783 Gear:= Gear^.NextGear |
1797 Gear:= Gear^.NextGear |
1784 end; |
1798 end; |
1785 end; |
1799 end; |