GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - jsoulier/blocks: Tiny Minecraft clone in C and HLSL using the new SDL3 GPU API

BranchesTags
Open more actions menu

Latest commit

 

History

102 Commits
102 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.vscode
.vscode
 
 
android
android
 
 
doc
doc
 
 
lib
lib
 
 
shaders
shaders
 
 
src
src
 
 
textures
textures
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
CMakeLists.txt
CMakeLists.txt
 
 
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 

Repository files navigation

Blocks

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

Running on Desktop

Running on a Samsung Galaxy A17

Features

  • Desktop and Android support
  • Keyboard and mouse, gamepad, and touch controls
  • Procedural world generation
  • Asynchronous chunk loading
  • Persistent worlds
  • Physics
  • Blocks and sprites
  • Basic lighting
  • Day and night cycle

Building

Windows

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

Linux

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

Web (WIP)

Get emsdk

emcmake cmake -S . -B build/web -G Ninja
cmake --build build/web

Android

Open android/ in Android Studio and press Run

Shaders

Shaders are precompiled. To build everything, add SDL_shadercross and naga-cli to your path

Controls

Keyboard and Mouse

  • WASDEQ to move
  • Space to jump
  • F5 to toggle fly
  • Escape to unfocus
  • Left Click to break a block
  • Middle Click to select a block
  • Right Click to place a block
  • Scroll to change blocks
  • F11 to toggle fullscreen
  • LControl to sprint
  • T to reset the time of day

Touch

  • Left side of the screen to move
  • Right side of the screen to look

Gamepad

  • Left Stick to move
  • Right Stick to look
  • X to jump or fly up
  • Circle to fly down
  • Triangle to toggle fly
  • R2 to break a block
  • R3 to select a block
  • L2 to place a block
  • L1/R1 to change blocks
  • L3 to sprint
  • Square to reset the time of day

About

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

Topics

3dandroidcexampleexamplesgamegpuhlsllinuxmacosmetalminecraftsdlsdl3shaderssqlitesqlite3voxelvulkanwindows

Resources

Readme
Unlicense
Activity

Stars

302 stars

Watchers

4 watching

Forks

14 forks
Report repository

Releases

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.