Skip to content

Tiny Minecraft clone in C and GLSL using the new SDL3 GPU API

License

Notifications You must be signed in to change notification settings

jsoulier/blocks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blocks

Tiny Minecraft clone in C and GLSL using the new SDL3 GPU API

Features

  • Procedural world generation
  • Blocks and plants
  • Transparent blocks
  • Directional shadow mapping
  • SSAO approximation
  • Persistent worlds

Building

git clone https://github.com/jsoulier/blocks --recurse-submodules
cd blocks
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . --parallel 8 --config Release
cd bin
./blocks.exe

Controls

  • WASDEQ to move
  • Escape to unfocus
  • LClick to break a block
  • RClick to place a block
  • B to toggle blocks
  • F11 to toggle fullscreen
  • LControl to move quickly