{"repo":"Vekteur/clonecraft","free":true,"listed":false,"github":"https://github.com/Vekteur/clonecraft","clone":"git clone https://github.com/Vekteur/clonecraft.git","description":"Simple Minecraft clone using C++ 17, OpenGL 3.3 and SFML 2.6","language":"C++","stars":35,"topics":["minecraft","opengl","modern-opengl","glsl","cpp","cpp17","sfml"],"license":"MIT","category":"game-templates","readme_excerpt":"CloneCraft An implementation of a simple voxel game inspired by Minecraft. It is written in C++ 17 and uses OpenGL 3.3 and SFML 2.6. The game is written with efficiency and simplicity in mind. Controls WASD, space and left shift to move Left-click to destroy a block Right-click to place a block Middle-click to pick a block Left control to sprint Mouse wheel to zoom T to teleport E to create an explosion Alt + E to create a huge explosition B to use the brush tool Alt + B to use the huge brush tool G to change gamemode Implementation details World The world consists of chunks of 32x32 blocks that are loaded and unloaded as the player moves. These chunks are divided in sections with an height of 32 blocks and are unlimited in height. The loading of the chunks is made in other threads. A new thread is also created when a set of sections is updated. Terrain generation The terrain consists of multiple octaves of perlin noise. Biomes are generated using noises representing temperature and altitude. A smooth interpolation allows to make smooth transitions between biomes. The structures are generated by dividing the world horizontally in small areas and randomly selecting a potential position in an area. Mesh creation Meshes are generated in each section to represent blocks, water, and lava. A mesh consists of potentially visible faces of a block. Aligned blocks with the same texture are merged in a same face. Rendering Blocks and water are rendered using shaders. The textures of the","default_branch":null,"files":null,"tree":[],"storefront":"/r/Vekteur","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Vekteur/clonecraft/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."}