32x32 tiles
This commit is contained in:
parent
ed55551853
commit
a97ab85b33
4 changed files with 2 additions and 2 deletions
Binary file not shown.
Before Width: | Height: | Size: 179 B After Width: | Height: | Size: 734 B |
Binary file not shown.
Before Width: | Height: | Size: 207 B After Width: | Height: | Size: 1 KiB |
|
@ -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;
|
||||
|
|
|
@ -45,7 +45,7 @@ private:
|
|||
std::map<std::string, SDL_Texture *> entityTextures;
|
||||
|
||||
int getTileSize() {
|
||||
return 16;
|
||||
return 32;
|
||||
}
|
||||
|
||||
public:
|
||||
|
|
Reference in a new issue