{"repo":"Druidman/minecraft-clone-opengl","free":true,"listed":false,"github":"https://github.com/Druidman/minecraft-clone-opengl","clone":"git clone https://github.com/Druidman/minecraft-clone-opengl.git","description":"Minecraft game clone written in c++","language":"C++","stars":69,"topics":["3d","game","game-engine","opengl","voxel-engine","webgl"],"license":null,"category":"game-templates","readme_excerpt":"Minecraft opengl clone written in c++ How to play? 1. Through website: https://minecraftplus.vercel.app 2. Run on your machine How to run 1. Download latest release and run it 2. Build from source: - Install GLFW (https://www.glfw.org/download.html) - enter: /game/ dir in terminal - In cmd or terminal: g++ -std=c++20 vendor/stb image/stb image.cpp vendor/glad/glad.c .cpp -o main -lglfw -lGL - In cmd or terminal: g++ -std=c++20 vendor/stb image/stb image.cpp vendor/glad/glad.c .cpp -o main -lglfw3 -lopengl32 -lgdi32 -lwinmm -static -static-libgcc -lwinpthread -L/../../glfw// -D WIN32 WINNT=0x0601 - run binary 3. Build from source WASM: - Make sure to have emscripten CLI installed - In cmd or terminal in /website/gameWebsite : - Use default emscripten HTML: emcc ../../game/ .cpp ../../game/vendor/glad/glad.o ../../game/vendor/stb image/stb image.cpp -std=c++20 -s USE GLFW=3 -s FULL ES3=1 -s MIN WEBGL VERSION=2 -s MAX WEBGL VERSION=2 -s ALLOW MEMORY GROWTH=1 -s EXIT RUNTIME=0 -s MINIFY HTML=0 -s ENVIRONMENT=web,worker -s DEMANGLE SUPPORT=0 --preload-file ../../game/textures@textures -s USE PTHREADS=1 -pthread --preload-file ../../game/shaders@shaders -O3 -o index.html - Use your custom HTML: emcc ../../game/ .cpp ../../game/vendor/glad/glad.o ../../game/vendor/stb image/stb image.cpp -std=c++20 -s USE GLFW=3 -s FULL ES3=1 -s MIN WEBGL VERSION=2 -s MAX WEBGL VERSION=2 -s ALLOW MEMORY GROWTH=1 -s EXIT RUNTIME=0 -s MINIFY HTML=0 -s ENVIRONMENT=web,worker -s DEMANGLE SUPPORT=0 --pre","default_branch":null,"files":null,"tree":[],"storefront":"/r/Druidman","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Druidman/minecraft-clone-opengl/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}