Thanks to visit codestin.com
Credit goes to github.com

Skip to content

coat/falling

Repository files navigation

falling

A clone of NS-SHAFT written in Zig and SDL3.

playing

Play online or download a static binary for your operating system.

If you have Nix installed, try nix run github:coat/falling#.

building

Requirements

  1. Zig 0.15.2
  2. emscripten (optional to build web version)
  3. SDL3 provided by your system or all of SDL3's dependencies to build and statically include SDL3 in the binary.

Instead of installing above dependencies, just install Nix and either run nix develop or also install direnv and run direnv allow to make your dreams come true.

zig build -Dtarget=ReleaseSmall and the game will be in zig-out/bin/falling.

If you want to link against the system provided SDL (recommended for Linux), add the -Dsystem_sdl option to the above command to build a lil' binary.

emscripten

Ensure sysroot has been built by running source tools/sysroot.sh from the project's root directory. This will be taken care of for you if using the provided Nix devShell.

Then run zig build -Dtarget=wasm32-emscripten --sysroot "$EM_CACHE/sysroot" run to open a browser with the game running.

Acknowledgements

About

a game inspired by NS-SHAFT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published