Skip to content

aadityadhruv/junkcraft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Junkcraft

A simple Minecraft-like voxel game written in pure C and OpenGL.

Current features:

  • Mesh culling rendering
  • Basic random terrain generation with "looping" world
  • Basic player movment physics - run and jump
  • Break and place blocks
  • Basic block variety and textures (in texture atlas)
  • Generate terrain based on perlin noise
  • Generate trees randomly
  • Really basic, non-wrapping 3d cave gen
  • Ore generation: bad random ore generation, probably will switch to noise based ore distribution
  • Working day/night cycle with a sun/moon/starry skybox, and changing light levels

Planned features include:

  • Technical
    • Frustum culling
    • Possible greedy culling
    • Improved AABB collision and movement physics
    • Skybox
    • Maybe some form of LODs
    • Terrain blend
    • Ambient occlusion
  • Gameplay
    • Terrain generation and biomes: Partially working
    • Tree generation: Partially working
    • Cave generation: Really really basic
    • Day/night cycle
    • Entities
    • Local play

Dependencies

  • SDL2: for Windowing and getting a OpenGL context
  • Freetype: For displaying text
  • libm: Math
  • libjunk: Some handy utils and structs

Build steps

CMake with Makfiles:

mkdir build
cd build
cmake ..
make

Screenshots

sunrise moonrise View of a mountain Atop a mountain

About

WIP Minecraft clone written in C and OpenGL

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages