32x32 tiles

This commit is contained in:
Matthias Schiffer 2014-09-23 16:01:52 +02:00
parent ed55551853
commit a97ab85b33
4 changed files with 2 additions and 2 deletions

View file

@ -84,7 +84,7 @@ void MapView::render(float centerX, float centerY) {
std::pair<int, int> viewport = window->getViewport();
float pixels = std::max(viewport.first/16.0f, viewport.second/12.0f);
float pixels = std::max(viewport.first/20.0f, viewport.second/15.0f);
int tilePixels = getTileSize() * std::ceil(pixels / getTileSize());
float tilesW = viewport.first / tilePixels;

View file

@ -45,7 +45,7 @@ private:
std::map<std::string, SDL_Texture *> entityTextures;
int getTileSize() {
return 16;
return 32;
}
public: