From a82704af889ee0323cadf4ce024f5baf453639eb Mon Sep 17 00:00:00 2001 From: tylermurphy534 Date: Sat, 1 Oct 2022 14:12:54 -0400 Subject: variable chunk sizes --- src/chunk.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/chunk.hpp') diff --git a/src/chunk.hpp b/src/chunk.hpp index 33cab10..59264fd 100644 --- a/src/chunk.hpp +++ b/src/chunk.hpp @@ -38,8 +38,6 @@ #define SHRUB_TEXTURE "res/image/shrub.png" #define SHRUB_TOP_TEXTURE "res/image/shrub_top.png" -static constexpr int WATER_LEVEL = 20; - namespace app { struct Block { @@ -50,6 +48,9 @@ class Chunk { public: + static constexpr int WATER_LEVEL = 20; + static constexpr glm::ivec3 CHUNK_SIZE{32, 256, 32}; + static void load(); static void unload(); static std::vector& getTextures(); -- cgit v1.2.3-freya