Don't use .bmp and .gif anymore, use .png for all lossless graphics.
This commit is contained in:
parent
3dcea6c81f
commit
d6c17d176f
|
@ -490,25 +490,25 @@ int galaxyMap()
|
||||||
char string[25];
|
char string[25];
|
||||||
|
|
||||||
engine.cursor_x = engine.cursor_y = 500;
|
engine.cursor_x = engine.cursor_y = 500;
|
||||||
shape[0] = loadImage("gfx/cursor.bmp");
|
shape[0] = loadImage("gfx/cursor.png");
|
||||||
|
|
||||||
// Icons 1 - 29
|
// Icons 1 - 29
|
||||||
for (int i = 0 ; i < 26 ; i++)
|
for (int i = 0 ; i < 26 ; i++)
|
||||||
{
|
{
|
||||||
sprintf(string, "gfx/icon%d.bmp", (i + 1));
|
sprintf(string, "gfx/icon%d.png", (i + 1));
|
||||||
shape[i + 1] = loadImage(string);
|
shape[i + 1] = loadImage(string);
|
||||||
}
|
}
|
||||||
|
|
||||||
shape[27] = loadImage("gfx/buyIcon.bmp");
|
shape[27] = loadImage("gfx/buyIcon.png");
|
||||||
shape[28] = loadImage("gfx/sellIcon.bmp");
|
shape[28] = loadImage("gfx/sellIcon.png");
|
||||||
shape[29] = loadImage("gfx/firefly1.png");
|
shape[29] = loadImage("gfx/firefly1.png");
|
||||||
|
|
||||||
// Planets 30 - 39
|
// Planets 30 - 39
|
||||||
shape[30] = loadImage("gfx/planet_sun.gif");
|
shape[30] = loadImage("gfx/planet_sun.png");
|
||||||
shape[31] = loadImage("gfx/planet_green.gif");
|
shape[31] = loadImage("gfx/planet_green.png");
|
||||||
shape[32] = loadImage("gfx/planet_blue.gif");
|
shape[32] = loadImage("gfx/planet_blue.png");
|
||||||
shape[33] = loadImage("gfx/planet_red.gif");
|
shape[33] = loadImage("gfx/planet_red.png");
|
||||||
shape[34] = loadImage("gfx/planet_orange.gif");
|
shape[34] = loadImage("gfx/planet_orange.png");
|
||||||
|
|
||||||
// Faces (as defines)
|
// Faces (as defines)
|
||||||
shape[FACE_CHRIS] = loadImage("gfx/face_chris.png");
|
shape[FACE_CHRIS] = loadImage("gfx/face_chris.png");
|
||||||
|
|
|
@ -182,10 +182,10 @@ void loadFont()
|
||||||
for (int i = 0 ; i < MAX_FONTSHAPES ; i++)
|
for (int i = 0 ; i < MAX_FONTSHAPES ; i++)
|
||||||
{
|
{
|
||||||
#if USEPACK
|
#if USEPACK
|
||||||
unpack("gfx/smallFont.bmp", PAK_FONT);
|
unpack("gfx/smallFont.png", PAK_FONT);
|
||||||
image = IMG_Load_RW(engine.sdlrw, 1);
|
image = IMG_Load_RW(engine.sdlrw, 1);
|
||||||
#else
|
#else
|
||||||
image = IMG_Load("gfx/smallFont.bmp");
|
image = IMG_Load("gfx/smallFont.png");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (image == NULL) {
|
if (image == NULL) {
|
||||||
|
|
|
@ -168,8 +168,8 @@ int doTitle()
|
||||||
loadBackground("gfx/spirit.jpg");
|
loadBackground("gfx/spirit.jpg");
|
||||||
|
|
||||||
SDL_Surface *prlogo, *sflogo;
|
SDL_Surface *prlogo, *sflogo;
|
||||||
prlogo = loadImage("gfx/prlogo.gif");
|
prlogo = loadImage("gfx/prlogo.png");
|
||||||
sflogo = loadImage("gfx/sflogo.gif");
|
sflogo = loadImage("gfx/sflogo.png");
|
||||||
|
|
||||||
int prx = ((800 - prlogo->w) / 2);
|
int prx = ((800 - prlogo->w) / 2);
|
||||||
int pry = ((600 - prlogo->h) / 2);
|
int pry = ((600 - prlogo->h) / 2);
|
||||||
|
|
|
@ -1,30 +1,30 @@
|
||||||
0 gfx/plasmaGreen.png
|
0 gfx/plasmaGreen.png
|
||||||
1 gfx/plasmaRed.png
|
1 gfx/plasmaRed.png
|
||||||
2 gfx/rocket1.bmp
|
2 gfx/rocket1.png
|
||||||
3 gfx/rocket2.bmp
|
3 gfx/rocket2.png
|
||||||
4 gfx/explode1.bmp
|
4 gfx/explode1.png
|
||||||
5 gfx/explode2.bmp
|
5 gfx/explode2.png
|
||||||
6 gfx/explode3.bmp
|
6 gfx/explode3.png
|
||||||
7 gfx/explode4.bmp
|
7 gfx/explode4.png
|
||||||
8 gfx/explode05.png
|
8 gfx/explode05.png
|
||||||
9 gfx/explode06.png
|
9 gfx/explode06.png
|
||||||
10 gfx/explode07.png
|
10 gfx/explode07.png
|
||||||
11 gfx/explode08.png
|
11 gfx/explode08.png
|
||||||
12 gfx/explode9.bmp
|
12 gfx/explode9.png
|
||||||
13 gfx/explode10.bmp
|
13 gfx/explode10.png
|
||||||
14 gfx/explode11.bmp
|
14 gfx/explode11.png
|
||||||
15 gfx/explode12.bmp
|
15 gfx/explode12.png
|
||||||
16 gfx/explode13.bmp
|
16 gfx/explode13.png
|
||||||
17 gfx/explode14.bmp
|
17 gfx/explode14.png
|
||||||
18 gfx/explode15.bmp
|
18 gfx/explode15.png
|
||||||
19 gfx/explode16.bmp
|
19 gfx/explode16.png
|
||||||
20 gfx/elec1.png
|
20 gfx/elec1.png
|
||||||
21 gfx/elec2.png
|
21 gfx/elec2.png
|
||||||
22 gfx/elec3.png
|
22 gfx/elec3.png
|
||||||
23 gfx/elec4.png
|
23 gfx/elec4.png
|
||||||
24 gfx/dollar.gif
|
24 gfx/dollar.png
|
||||||
25 gfx/rocket.gif
|
25 gfx/rocket.png
|
||||||
26 gfx/heart.gif
|
26 gfx/heart.png
|
||||||
27 gfx/plasmaAmmo.png
|
27 gfx/plasmaAmmo.png
|
||||||
28 gfx/plasmaRate.png
|
28 gfx/plasmaRate.png
|
||||||
29 gfx/plasmaDamage.png
|
29 gfx/plasmaDamage.png
|
||||||
|
|
|
@ -26,8 +26,8 @@
|
||||||
27 gfx/merc2.png
|
27 gfx/merc2.png
|
||||||
30 gfx/escort1.png
|
30 gfx/escort1.png
|
||||||
31 gfx/escort2.png
|
31 gfx/escort2.png
|
||||||
32 gfx/barrier.gif
|
32 gfx/barrier.png
|
||||||
33 gfx/barrier.gif
|
33 gfx/barrier.png
|
||||||
34 gfx/mobileShield1.png
|
34 gfx/mobileShield1.png
|
||||||
35 gfx/mobileShield2.png
|
35 gfx/mobileShield2.png
|
||||||
36 gfx/drone1.png
|
36 gfx/drone1.png
|
||||||
|
|
Loading…
Reference in New Issue