https://github.com/qninhdt/yourcraft
YourCraft - a simple voxel game written in C++ using modern OpenGL
https://github.com/qninhdt/yourcraft
cpp game gamedev glsl imgui minecraft minecraft-clone opengl voxel
Last synced: 3 days ago
JSON representation
YourCraft - a simple voxel game written in C++ using modern OpenGL
- Host: GitHub
- URL: https://github.com/qninhdt/yourcraft
- Owner: qninhdt
- License: mit
- Created: 2022-10-13T13:51:38.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-18T08:09:07.000Z (over 3 years ago)
- Last Synced: 2023-03-07T12:29:02.133Z (over 3 years ago)
- Topics: cpp, game, gamedev, glsl, imgui, minecraft, minecraft-clone, opengl, voxel
- Language: C++
- Homepage:
- Size: 33.2 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
YourCraft
❝ It's not Mine, but Your . . . Craft ! ❞ — @qninhdt
---
## 💡 Features
- Infinite, procedurally generated world
- Full transparency + translucency support
- Debug widget
- Inventory GUI
## 🎮 How to play
- `Left Click` to break a block
- `Right Click` to place a block
- `WASD` to move around
- `Space` to go up
- `Shift` to go down
- `Esc` to pause game
## 🖼️ Preview

- ### Mountain

- ### Tree

- ### Flower

- ### Grass

- ### Snow

- ### Water


- ### Glass

- ### Simple house

- ### Debug mode

- ### Pause menu

---
## 📁 Folder structure
├── deps # Libraries (glad, glm, ...)
├── images # Development process
├── resources # Game texture and shader files
└── src # Source files
| ├── gl # OpenGL wrapper
| ├── graphic # Game rendering (mesh, framebuffer, ...)
| ├── gui # Game user interface
| ├── util # Utility functions
| ├── world # Manage world components (chunk, tree, ...)
| └── ...
└── ...
## 📦 Libraries
- [glad](https://github.com/Dav1dde/glad) - Loading OpenGL functions
- [GLFW](https://github.com/glfw/glfw) - Creating window and reading input
- [glm](https://github.com/g-truc/glm) - Math calculating
- [FastNoiseLite](https://github.com/Auburn/FastNoiseLite) - Used in terrain generation
- [imgui](https://github.com/ocornut/imgui) - For creating an awesome GUI
- [stb_image.h](https://github.com/nothings/stb/blob/master/stb_image.h) - Loading PNG textures
## 🔨 Tools
- [Visual Studio Code](https://code.visualstudio.com/)
- [CMake](https://cmake.org/) - For building C++ project
- [Aseprite](https://www.aseprite.org/) - For game textures
## 🌟 References
- https://learnopengl.com/
- https://github.com/Isti01/glCraft
- https://github.com/Hopson97/HopsonCraft
## 🔒 License
[YourCraft License](./LICENSE.md)