Skip to content

YourCraft - a simple voxel game written in C++ using modern OpenGL

License

Notifications You must be signed in to change notification settings

qninhdt/yourcraft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YourCraft

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

YourCraftt

  • Mountain

Moutain

  • Tree

Tree

  • Flower

Flower

  • Grass

Grass

  • Snow

Snow

  • Water

Water Water

  • Glass

Glass

  • Simple house

Simple house

  • Debug mode

Debug mode

  • Pause menu

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 - Loading OpenGL functions
  • GLFW - Creating window and reading input
  • glm - Math calculating
  • FastNoiseLite - Used in terrain generation
  • imgui - For creating an awesome GUI
  • stb_image.h - Loading PNG textures

🔨 Tools

🌟 References

🔒 License

YourCraft License