diff options
| author | Ben Beltran <ben@nsovocal.com> | 2018-06-27 15:55:22 -0500 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2018-06-27 15:55:22 -0500 |
| commit | f631762a97e1f2afa309bfbc39f83f4fb46b00ee (patch) | |
| tree | 6662b8da2310a684908d41dbdb999ad83d54c0ca /map.cpp | |
| parent | 95a80700dcde3e51cba8fdbb314b0804ba680b20 (diff) | |
Used homebrew from SDL and Lua 5.3
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);
|