Commits

Anonymous committed f86557f

Moved resources into 640x480 dir in preparation for support of other res.

  • Participants
  • Parent commits 3dfae26

Comments (0)

Files changed (35)

 {
 	SDL_Surface *image_bmp;
 	SDL_Surface *surface;
+#define MYMAXPATH 255
+	char local_path[MYMAXPATH];
 
 	printf("Budu nahravat obrazek %s\n", path);
+	sprintf(local_path, "%s%s", GFXPATH, path);
 
-	image_bmp = SDL_LoadBMP(path);
+	image_bmp = SDL_LoadBMP(local_path);
 	if (image_bmp == NULL) {
 		// vynadani a konec
 		CSystem::problemSDL(__FILE__, __LINE__, __FUNCTION__);
 #include "SDL/SDL.h"
 #include "SDL/SDL_mixer.h"
 
+/*
+#define DIRSEP "\\"
+*/
+#define DIRSEP "/"
+#define GFXDIR "gfx640x480"
+#define GFXPATH GFXDIR DIRSEP
+
+
 struct CSRand {
 	CSRand();
 };

File body/lod.wav

Binary file removed.

File body/shot.wav

Binary file removed.

File body/shot_down.bmp

Removed
Old image

File body/shot_up.bmp

Removed
Old image

File body/stihacka_down.bmp

Removed
Old image

File body/stihacka_up.bmp

Removed
Old image

File body/talir_down.bmp

Removed
Old image

File body/talir_up.bmp

Removed
Old image

File body/ufon_down.bmp

Removed
Old image

File body/ufon_up.bmp

Removed
Old image

File gfx640x480/body/lod.wav

Binary file added.

File gfx640x480/body/shot.wav

Binary file added.

File gfx640x480/body/shot_down.bmp

Added
New image

File gfx640x480/body/shot_up.bmp

Added
New image

File gfx640x480/body/stihacka_down.bmp

Added
New image

File gfx640x480/body/stihacka_up.bmp

Added
New image

File gfx640x480/body/talir_down.bmp

Added
New image

File gfx640x480/body/talir_up.bmp

Added
New image

File gfx640x480/body/ufon_down.bmp

Added
New image

File gfx640x480/body/ufon_up.bmp

Added
New image

File gfx640x480/weapon/cannon_down.bmp

Added
New image

File gfx640x480/weapon/cannon_up.bmp

Added
New image

File gfx640x480/weapon/fork_down.bmp

Added
New image

File gfx640x480/weapon/fork_up.bmp

Added
New image

File gfx640x480/weapon/magnet_down.bmp

Added
New image

File gfx640x480/weapon/magnet_up.bmp

Added
New image

File ships

Binary file modified.

File weapon/cannon_down.bmp

Removed
Old image

File weapon/cannon_up.bmp

Removed
Old image

File weapon/fork_down.bmp

Removed
Old image

File weapon/fork_up.bmp

Removed
Old image

File weapon/magnet_down.bmp

Removed
Old image

File weapon/magnet_up.bmp

Removed
Old image