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

@@ -12,12 +12,17 @@
#include <gl/GLU.h>
#endif
#define VIEW_DISTANCE 128
#define CHUNK_SIZE_X 16
#define CHUNK_SIZE_Y 128
#define CHUNK_SIZE_Z 16
#define MAX_RENDER_CHUNKS 2
#define MAX_UPDATE_CHUNKS 2
#define WORLD_SIZE_X 8
#define WORLD_SIZE_Y 8
#define VIEW_DISTANCE 128
#define FRAMES_RENDER_CHUNKS 2
#define FRAMES_UPDATE_CHUNKS 2
#define MAX_SELECTION_DISTANCE 5
typedef uint8_t BlockType;
enum BLOCK_TYPE { BTYPE_AIR, BTYPE_DIRT, BTYPE_GRASS, BTYPE_METAL, BTYPE_ICE, BTYPE_LAST };