diff options
Diffstat (limited to 'map.cpp')
| -rwxr-xr-x | map.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -25,12 +25,11 @@ Map::Map(void) tileset[13] = 1;
tileset[14] = 1;
+
//Get the Sheet
- sheet = IMG_Load("./sprites/tilesheet.png");
-// sheet = SDL_DisplayFormat(raw_sprite);
-// SDL_FreeSurface(raw_sprite);
+ sheet = IMG_Load("./sprites/tilesheet.gif");
Uint32 colorkey = SDL_MapRGB(sheet->format, 255, 0, 255);
- SDL_SetColorKey(sheet, SDL_SRCCOLORKEY | SDL_RLEACCEL, colorkey);
+ SDL_SetColorKey(sheet, SDL_SRCCOLORKEY | SDL_RLEACCEL, colorkey); //le ponemos al buddy el colorkey para las transparencias
std::ifstream in("./map0.bin", std::ios::in | std::ios::binary);
|