Marcador transparente. Area de juego ocupa toda la pantalla

This commit is contained in:
2022-09-22 20:50:34 +02:00
parent 44c9bb0a44
commit 96c0ddf8ed
18 changed files with 238 additions and 141 deletions

View File

@@ -6,7 +6,7 @@ Map::Map(std::string file, SDL_Renderer *renderer, Asset *asset, ItemTracker *it
// Inicializa variables
tile_size = 8;
map_width = 40;
map_height = 26;
map_height = 30;
name = file.substr(file.find_last_of("\\/") + 1);
enemy_file = "";
bgColor1 = bgColor2 = {0, 0, 0};
@@ -508,7 +508,6 @@ e_tile_map Map::getTile(SDL_Point p)
// Calcula el tile
const int tile = collisionmap[((y / tile_size) * map_width) + (x / tile_size)];
// Las 8 primeras filas son tiles de fondo
if (tile == 0)
{
return nothing;