Primera implementacion de tiles atravesables. No funcionará si estan apilados
This commit is contained in:
@@ -16,7 +16,7 @@ enum t_tile_map
|
||||
{
|
||||
nothing,
|
||||
wall,
|
||||
travessable
|
||||
passable
|
||||
};
|
||||
|
||||
// The player
|
||||
@@ -36,9 +36,10 @@ 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_width; // Ancho del tile en pixels
|
||||
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
|
||||
bool load(std::string file);
|
||||
@@ -64,6 +65,9 @@ public:
|
||||
|
||||
// Devuelve el tipo de tile que hay en un punto
|
||||
t_tile_map getTile(SDL_Point p);
|
||||
|
||||
// Devuelve el valor de la variable
|
||||
int getTileWidth();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user