Bientôt un monde infini?

This commit is contained in:
MarcEricMartel
2021-11-26 11:59:02 -05:00
parent 6446be1ceb
commit fe624fdafc
14 changed files with 815 additions and 146 deletions

View File

@@ -17,13 +17,12 @@ class World {
Chunk* ChunkAt(float x, float y, float z) const;
Chunk* ChunkAt(const Vector3f& pos) const;
BlockType BlockAt(float x, float y, float z, BlockType defaultBlockType = BTYPE_AIR) const;
BlockType BlockAt(const Vector3f& pos, BlockType defaultBlockType = BTYPE_AIR) const;
private:
Array2d<Chunk*> m_chunks = Array2d<Chunk*>(VIEW_DISTANCE, VIEW_DISTANCE);
Array2d<Chunk*> m_chunks = Array2d<Chunk*>(WORLD_SIZE_X, WORLD_SIZE_Y);
int m_center[2] = {0, 0};
};