# HG changeset patch # User unc0rr # Date 1201466850 0 # Node ID 0138f1b5a804936574cab1566491707ae162d9f3 # Parent 788efc1d649fd4a28684ebb2fe8f469d6013b30c - Add alpha-channel to all sprites left - Reanimate ammo menu diff -r 788efc1d649f -r 0138f1b5a804 hedgewars/uWorld.pas --- a/hedgewars/uWorld.pas Sun Jan 27 20:35:40 2008 +0000 +++ b/hedgewars/uWorld.pas Sun Jan 27 20:47:30 2008 +0000 @@ -170,21 +170,12 @@ end; begin +// Sky glClear(GL_COLOR_BUFFER_BIT); glEnable(GL_BLEND); if not isPaused then MoveCamera; -// Sky -if WorldDy > 0 then - begin - if WorldDy > cScreenHeight then r.h:= cScreenHeight - else r.h:= WorldDy; - r.x:= 0; - r.y:= 0; - r.w:= cScreenWidth; -// SDL_FillRect(Surface, @r, cSkyColor) - end; // background DrawRepeated(sprSky, WorldDx * 3 div 8); DrawRepeated(sprHorizont, WorldDx * 3 div 5); @@ -223,14 +214,14 @@ if i>99 then t:= 112 else if i>9 then t:= 96 else t:= 80; -// DrawSprite(sprFrame, t, cScreenHeight - 48, 1, Surface); + DrawSprite(sprFrame, t, cScreenHeight - 48, 1, Surface); while i > 0 do begin dec(t, 32); DrawSprite(sprBigDigit, t, cScreenHeight - 48, i mod 10, Surface); i:= i div 10 end; -// DrawSprite(sprFrame, t - 4, cScreenHeight - 48, 0, Surface); + DrawSprite(sprFrame, t - 4, cScreenHeight - 48, 0, Surface); end; // Attack bar @@ -323,7 +314,7 @@ end; // AmmoMenu -//if (AMxCurr < cScreenWidth) or bShowAmmoMenu then ShowAmmoMenu(Surface); +if (AMxCurr < cScreenWidth) or bShowAmmoMenu then ShowAmmoMenu(Surface); // Cursor if isCursorVisible then @@ -342,10 +333,6 @@ DrawSprite(sprArrow, CursorPoint.X, CursorPoint.Y, (RealTicks shr 6) mod 8, Surface) end; -{$IFDEF COUNTTICKS} -//DXOutText(10, 10, fnt16, inttostr(cntTicks), Surface); -{$ENDIF} - if isPaused then DrawCentered(cScreenWidth div 2, cScreenHeight div 2, PauseTexture); inc(Frames); diff -r 788efc1d649f -r 0138f1b5a804 share/hedgewars/Data/Graphics/AmmoMenu/Selection.png Binary file share/hedgewars/Data/Graphics/AmmoMenu/Selection.png has changed diff -r 788efc1d649f -r 0138f1b5a804 share/hedgewars/Data/Graphics/Arrow.png Binary file share/hedgewars/Data/Graphics/Arrow.png has changed diff -r 788efc1d649f -r 0138f1b5a804 share/hedgewars/Data/Graphics/Case.png Binary file share/hedgewars/Data/Graphics/Case.png has changed diff -r 788efc1d649f -r 0138f1b5a804 share/hedgewars/Data/Graphics/ClBomb.png Binary file share/hedgewars/Data/Graphics/ClBomb.png has changed diff -r 788efc1d649f -r 0138f1b5a804 share/hedgewars/Data/Graphics/ClParticle.png Binary file share/hedgewars/Data/Graphics/ClParticle.png has changed diff -r 788efc1d649f -r 0138f1b5a804 share/hedgewars/Data/Graphics/Flame.png Binary file share/hedgewars/Data/Graphics/Flame.png has changed diff -r 788efc1d649f -r 0138f1b5a804 share/hedgewars/Data/Graphics/Graves/Bone.png Binary file share/hedgewars/Data/Graphics/Graves/Bone.png has changed diff -r 788efc1d649f -r 0138f1b5a804 share/hedgewars/Data/Graphics/Graves/Rip.png Binary file share/hedgewars/Data/Graphics/Graves/Rip.png has changed diff -r 788efc1d649f -r 0138f1b5a804 share/hedgewars/Data/Graphics/Graves/Simple.png Binary file share/hedgewars/Data/Graphics/Graves/Simple.png has changed diff -r 788efc1d649f -r 0138f1b5a804 share/hedgewars/Data/Graphics/Graves/coffin.png Binary file share/hedgewars/Data/Graphics/Graves/coffin.png has changed diff -r 788efc1d649f -r 0138f1b5a804 share/hedgewars/Data/Graphics/MineOn.png Binary file share/hedgewars/Data/Graphics/MineOn.png has changed diff -r 788efc1d649f -r 0138f1b5a804 share/hedgewars/Data/Graphics/RopeHook.png Binary file share/hedgewars/Data/Graphics/RopeHook.png has changed diff -r 788efc1d649f -r 0138f1b5a804 share/hedgewars/Data/Graphics/RopeNode.png Binary file share/hedgewars/Data/Graphics/RopeNode.png has changed diff -r 788efc1d649f -r 0138f1b5a804 share/hedgewars/Data/Graphics/Target.png Binary file share/hedgewars/Data/Graphics/Target.png has changed diff -r 788efc1d649f -r 0138f1b5a804 share/hedgewars/Data/Graphics/Targetp.png Binary file share/hedgewars/Data/Graphics/Targetp.png has changed diff -r 788efc1d649f -r 0138f1b5a804 share/hedgewars/Data/Graphics/UFO.png Binary file share/hedgewars/Data/Graphics/UFO.png has changed diff -r 788efc1d649f -r 0138f1b5a804 share/hedgewars/Data/Graphics/dynamite.png Binary file share/hedgewars/Data/Graphics/dynamite.png has changed diff -r 788efc1d649f -r 0138f1b5a804 share/hedgewars/Data/Graphics/hhMask.png Binary file share/hedgewars/Data/Graphics/hhMask.png has changed