X-Git-Url: https://git.r.bdr.sh/rbdr/pico-engine/blobdiff_plain/10a0e290ac07524dc129cc2b227b0f9e95df0f8e..HEAD:/map.cpp?ds=inline diff --git a/map.cpp b/map.cpp index fcc2d11..99b7b29 100755 --- a/map.cpp +++ b/map.cpp @@ -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);