Added 3 unicode pages for font, fixed UI, added Block.breakable

Added 1, 2, 3 and 4 unicode pages from Minecraft.
Font now uses std::wstring instead of std::string
Added Block.breakable field (the only unbreakable block is bedrock)
Bedrock is now selectable
This commit is contained in:
MihailRis
2022-07-14 19:23:31 +03:00
committed by GitHub
parent b2872650d6
commit bdd3fbf7d4
17 changed files with 94 additions and 47 deletions
+2 -2
View File
@@ -104,7 +104,7 @@ Level* load_level(World* world, Player* player) {
int initialize(Assets*& assets){
Audio::initialize();
Window::initialize(WIDTH, HEIGHT, "Window 2.0");
Window::initialize(WIDTH, HEIGHT, "VoxelEngine-Cpp v.12");
Events::initialize();
assets = new Assets();
@@ -127,7 +127,7 @@ int main() {
if (status) return status;
std::cout << "-- loading world" << std::endl;
vec3 playerPosition = vec3(-320,200,32);
vec3 playerPosition = vec3(0,150,-10);
Camera* camera = new Camera(playerPosition, radians(90.0f));
World* world = new World("world-1", "world/", 42);
Player* player = new Player(playerPosition, 4.0f, camera);