]> git.r.bdr.sh - rbdr/pico-engine/blobdiff - map.cpp
Update project so it compiles
[rbdr/pico-engine] / map.cpp
diff --git a/map.cpp b/map.cpp
index fcc2d11a34764d70d13990a61a20d10ccdcf274f..99b7b29625c323fca9e26d1f269ee57d93b347b3 100755 (executable)
--- a/map.cpp
+++ b/map.cpp
@@ -25,12 +25,11 @@ Map::Map(void)
        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