mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-06-17 16:17:02 +08:00
35 lines
1.0 KiB
C++
35 lines
1.0 KiB
C++
#pragma once
|
|
#include "Cubed/gameplay/chunk_pos.hpp"
|
|
|
|
#include <array>
|
|
namespace Cubed {
|
|
|
|
constexpr int WORLD_SIZE_Y = 256;
|
|
constexpr int CHUNK_SIZE = 16;
|
|
constexpr int SEA_LEVEL = 63;
|
|
|
|
constexpr int MAX_UI_NUM = 1;
|
|
constexpr int MAX_BLOCK_STATUS = 1;
|
|
constexpr int MAX_BIOME_SUM = 4;
|
|
constexpr int MAX_CHARACTER = 128;
|
|
|
|
constexpr int PRE_LOAD_DISTANCE = 24;
|
|
|
|
constexpr int MAX_DISTANCE = 128;
|
|
constexpr int CROSS_PLANE_DISTANCE = 8;
|
|
constexpr float DEFAULT_FOV = 70.0f;
|
|
constexpr float DEFAULT_MAX_WALK_SPEED = 4.5f;
|
|
constexpr float DEFAULT_MAX_RUN_SPEED = 7.0f;
|
|
constexpr float DEFAULT_ACCELERATION = 10.0f;
|
|
constexpr float DEFAULT_DECELERATION = 15.0f;
|
|
constexpr float DEFAULT_G = 22.5f;
|
|
constexpr int SIZE_X = CHUNK_SIZE;
|
|
constexpr int SIZE_Y = WORLD_SIZE_Y;
|
|
constexpr int SIZE_Z = CHUNK_SIZE;
|
|
|
|
constexpr ChunkPos CHUNK_DIR[]{{1, 0}, {-1, 0}, {0, 1}, {0, -1},
|
|
{1, 1}, {-1, 1}, {1, -1}, {-1, -1}};
|
|
|
|
using HeightMapArray = std::array<std::array<int, CHUNK_SIZE>, CHUNK_SIZE>;
|
|
|
|
} // namespace Cubed
|