diff options
author | Treeki <treeki@gmail.com> | 2012-01-16 02:05:06 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-01-16 02:05:06 +0100 |
commit | 9328f950fb9eebadb43f004a2f8366e7f5f14e14 (patch) | |
tree | e29775098947d69e62d5baf3d3b8d049df2b5097 /src/koopatlas | |
parent | c5205660419679499cd6c7c89426279290bea5ce (diff) | |
download | kamek-9328f950fb9eebadb43f004a2f8366e7f5f14e14.tar.gz kamek-9328f950fb9eebadb43f004a2f8366e7f5f14e14.zip |
fixed some rendering issues
Diffstat (limited to 'src/koopatlas')
-rw-r--r-- | src/koopatlas/camera.cpp | 2 | ||||
-rw-r--r-- | src/koopatlas/map.cpp | 12 | ||||
-rw-r--r-- | src/koopatlas/player.cpp | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/src/koopatlas/camera.cpp b/src/koopatlas/camera.cpp index 0e6e320..bfcc674 100644 --- a/src/koopatlas/camera.cpp +++ b/src/koopatlas/camera.cpp @@ -33,7 +33,7 @@ dWorldCamera_c::dWorldCamera_c() { currentX = 0; currentY = 0; - zoomLevel = 1.5f; + zoomLevel = 2.0f; } diff --git a/src/koopatlas/map.cpp b/src/koopatlas/map.cpp index 0334926..35aadab 100644 --- a/src/koopatlas/map.cpp +++ b/src/koopatlas/map.cpp @@ -81,13 +81,13 @@ void dWMMap_c::renderer_c::drawLayers() { dKPMapData_c *dataCls = &dScKoopatlas_c::instance->mapData; dKPMapFile_s *data = dataCls->data; - baseZ = 1000 - (10 * data->layerCount); + baseZ = -(2 * data->layerCount); beginRendering(); for (int iLayer = data->layerCount - 1; iLayer >= 0; iLayer--) { dKPLayer_s *layer = data->layers[iLayer]; - renderMtx[2][3] += 10; + renderMtx[2][3] += 2; TileReport("Checking layer %d with type %d\n", iLayer, layer->type); if (layer->type == dKPLayer_s::OBJECTS) @@ -113,10 +113,10 @@ void dWMMap_c::renderer_c::beginRendering() { GXSetCurrentMtx(GX_PNMTX0); dWorldCamera_c *camObj = dWorldCamera_c::instance; - minX = ((int)camObj->screenLeft) / 16; - minY = ((int)(-camObj->screenTop) - 15) / 16; - maxX = (((int)(camObj->screenLeft + camObj->screenWidth)) + 15) / 16; - maxY = ((int)(-camObj->screenTop + camObj->screenHeight)) / 16; + minX = ((int)camObj->screenLeft) / 24; + minY = ((int)(-camObj->screenTop) - 23) / 24; + maxX = (((int)(camObj->screenLeft + camObj->screenWidth)) + 23) / 24; + maxY = ((int)(-camObj->screenTop + camObj->screenHeight)) / 24; GXClearVtxDesc(); diff --git a/src/koopatlas/player.cpp b/src/koopatlas/player.cpp index f754a9b..2255eb7 100644 --- a/src/koopatlas/player.cpp +++ b/src/koopatlas/player.cpp @@ -13,7 +13,7 @@ int daWMPlayer_c::onCreate() { this->modelHandler->draw(); OSReport("Init done!\n"); - pos = (Vec){0.0f,0.0f,0.0f}; + pos = (Vec){0.0f,0.0f,3000.0f}; rot = (S16Vec){0,0,0}; scale = (Vec){1.0f,1.0f,1.0f}; |