Terminados los tiles atravesables

This commit is contained in:
2022-08-20 09:15:51 +02:00
parent 8765049b69
commit 7e93b3150f
6 changed files with 102 additions and 58 deletions

View File

@@ -36,9 +36,9 @@ private:
LTexture *texture_bg; // Textura con los graficos de fondo de la habitación
SDL_Texture *map_texture; // Textura para dibujar el mapa de la habitación
int tile_size; // Ancho del tile en pixels
int map_width; // Ancho del mapa en tiles
int map_height; // Alto del mapa en tiles
int tile_size; // Ancho del tile en pixels
int map_width; // Ancho del mapa en tiles
int map_height; // Alto del mapa en tiles
int tileset_width; // Ancho del tileset en tiles
// Carga las variables desde un fichero
@@ -68,6 +68,9 @@ public:
// Devuelve el valor de la variable
int getTileSize();
// Devuelve el indice del tile correspondiente a un punto del mapa
int getTileIndex(SDL_Point p);
};
#endif