diff --git a/SQCSim2021/define.h b/SQCSim2021/define.h index a1b29c5..fc1747e 100644 --- a/SQCSim2021/define.h +++ b/SQCSim2021/define.h @@ -26,6 +26,7 @@ #define FRAMES_DELETE_CHUNKS 4 #define VIEW_DISTANCE 128 +#define TEXTURE_SIZE 32 #endif #ifdef NDEBUG @@ -37,6 +38,7 @@ #define FRAMES_DELETE_CHUNKS 2 #define VIEW_DISTANCE 512 +#define TEXTURE_SIZE 512 #endif diff --git a/SQCSim2021/engine.cpp b/SQCSim2021/engine.cpp index 3387bc5..6668b9e 100644 --- a/SQCSim2021/engine.cpp +++ b/SQCSim2021/engine.cpp @@ -58,7 +58,7 @@ void Engine::LoadResource() { TextureAtlas::TextureIndex texGrassIndex = m_textureAtlas.AddTexture(TEXTURE_PATH "grass.png"); TextureAtlas::TextureIndex texMetalIndex = m_textureAtlas.AddTexture(TEXTURE_PATH "dirt.png"); - if (!m_textureAtlas.Generate(512, false)) { + if (!m_textureAtlas.Generate(TEXTURE_SIZE, false)) { std::cout << " Unable to generate texture atlas ..." << std::endl; abort(); } diff --git a/SQCSim2021/media/chunks/16325_16384.chunk b/SQCSim2021/media/chunks/16325_16384.chunk deleted file mode 100644 index 0137b36..0000000 Binary files a/SQCSim2021/media/chunks/16325_16384.chunk and /dev/null differ diff --git a/SQCSim2021/media/chunks/16364_16379.chunk b/SQCSim2021/media/chunks/16364_16379.chunk deleted file mode 100644 index 507340d..0000000 --- a/SQCSim2021/media/chunks/16364_16379.chunk +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/SQCSim2021/media/chunks/16369_16385.chunk b/SQCSim2021/media/chunks/16369_16385.chunk deleted file mode 100644 index 1a5b1e4..0000000 --- a/SQCSim2021/media/chunks/16369_16385.chunk +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/SQCSim2021/media/chunks/16371_16383.chunk b/SQCSim2021/media/chunks/16371_16383.chunk deleted file mode 100644 index a197f63..0000000 --- a/SQCSim2021/media/chunks/16371_16383.chunk +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/SQCSim2021/media/chunks/16378_16383.chunk b/SQCSim2021/media/chunks/16378_16383.chunk deleted file mode 100644 index dd1dcbf..0000000 Binary files a/SQCSim2021/media/chunks/16378_16383.chunk and /dev/null differ diff --git a/SQCSim2021/media/chunks/16381_16247.chunk b/SQCSim2021/media/chunks/16381_16247.chunk deleted file mode 100644 index 5e744b5..0000000 Binary files a/SQCSim2021/media/chunks/16381_16247.chunk and /dev/null differ diff --git a/SQCSim2021/media/chunks/16397_16373.chunk b/SQCSim2021/media/chunks/16397_16373.chunk deleted file mode 100644 index f88e52d..0000000 Binary files a/SQCSim2021/media/chunks/16397_16373.chunk and /dev/null differ diff --git a/SQCSim2021/media/chunks/16398_16392.chunk b/SQCSim2021/media/chunks/16398_16392.chunk deleted file mode 100644 index 96064c8..0000000 Binary files a/SQCSim2021/media/chunks/16398_16392.chunk and /dev/null differ diff --git a/SQCSim2021/media/chunks/16400_16392.chunk b/SQCSim2021/media/chunks/16400_16392.chunk deleted file mode 100644 index e49266c..0000000 Binary files a/SQCSim2021/media/chunks/16400_16392.chunk and /dev/null differ diff --git a/SQCSim2021/media/chunks/16505_16212.chunk b/SQCSim2021/media/chunks/16505_16212.chunk deleted file mode 100644 index a00f373..0000000 Binary files a/SQCSim2021/media/chunks/16505_16212.chunk and /dev/null differ diff --git a/SQCSim2021/world.cpp b/SQCSim2021/world.cpp index 23c798e..473cd58 100644 --- a/SQCSim2021/world.cpp +++ b/SQCSim2021/world.cpp @@ -166,7 +166,7 @@ bool World::GenerateChunk(int chx, int chy, Perlin& perlin) { for (int x = 0; x < CHUNK_SIZE_X; ++x) // "Lacs" for (int z = 0; z < CHUNK_SIZE_Z; ++z) { - for (int y = 0; y < 12; ++y) { + for (int y = 0; y < 13; ++y) { if (chunk->GetBlock(x, y, z) == BTYPE_AIR) chunk->SetBlock(x, y, z, BTYPE_ICE, this); }