Commit f24f7c7c authored by Robert Scott James's avatar Robert Scott James

Commiting slight change that puts the tile dimension into the game object and...

Commiting slight change that puts the tile dimension into the game object and some not completed work on the drawTiles

 Changes to be committed:
	modified:   entity/vision/vision.cpp
	modified:   game/game.cpp
	modified:   game/game.h
parent 6770873f
......@@ -170,6 +170,14 @@ void Vision::drawLevel(Display*& dpy,Window& w,GC& gc,int scale){
}
void Vision::drawTiles(Display *& dpy, Window &w, GC &gc,int scale, unsigned char **tiles){
Colormap colormap;
colormap = DefaultColormap(dpy, 0);
const int VIEW_DIAM = viewDistance * 2 + 1;
}
......@@ -143,7 +143,7 @@ void Game::loop(){
}
int Game::readTiles(std::string tilesFilename){
unsigned int error, tileFileWidth, tileHeight;
unsigned int error, tileFileWidth;
unsigned char* image;
error = lodepng_decode32_file(&image, &tileFileWidth, &tileHeight, tilesFilename.c_str());
......
......@@ -22,6 +22,7 @@ class Game {
protected:
int nTiles;
int const rootWindow;
int tileHeight;
std::vector<std::shared_ptr<Dungeon>> levels;
std::vector<std::shared_ptr<Entity>> entities;
Hero *theHero;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment