tileset[13] = 1;\r
tileset[14] = 1;\r
\r
+\r
//Get the Sheet\r
- sheet = IMG_Load("./sprites/tilesheet.png");\r
-// sheet = SDL_DisplayFormat(raw_sprite);\r
-// SDL_FreeSurface(raw_sprite);\r
+ sheet = IMG_Load("./sprites/tilesheet.gif");\r
Uint32 colorkey = SDL_MapRGB(sheet->format, 255, 0, 255);\r
- SDL_SetColorKey(sheet, SDL_SRCCOLORKEY | SDL_RLEACCEL, colorkey);\r
+ SDL_SetColorKey(sheet, SDL_SRCCOLORKEY | SDL_RLEACCEL, colorkey); //le ponemos al buddy el colorkey para las transparencias\r
\r
std::ifstream in("./map0.bin", std::ios::in | std::ios::binary);\r
\r