Marcador transparente. Area de juego ocupa toda la pantalla
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user