deckarep/dungeon-rush
πΎπ A zig port of Dungeon Rush. An open-source game inspired by snake, written in pure Zig with SDL2.
This is a near exact Zig port of the original DungeonRush C-based rogue-like game running on SDL2 originally developed by @rapiz1.
GeneralPurposeAllocator leak detection featureup, down, left, right to control your characterc.malloc/c.free in all casesc.qsort with a callconv(.C) callback in favor of Zig's sortingconst correctness where applicablec_int or C specific typesdefer/errdefer for effective cleanuptrybuild.zig.zon file for any dependenciesgeneric LinkList over the original C ADT styleCause it's a game-changing, bad-ass language that unlocks super-powers and was a fun learning experience.
zrc/ - Ziglang port (by @deckarep)src/ - C-based version (original by @rapiz1)zig build runWant to hack on this project with me? I will welcome all contributions that improve the code while keeping it faithful to the original DungeonRush project. I'd like the game to look and run identical. I'd like help with the phases outlined above. There's plenty of low-hanging fruit that is relevant to beginners and experienced a-like.
However, code will be rejected that needlessly complicates the game or does not run identical to the original C project.
If people want to change the overall look and feel or game logic, please fork DungeonRush and change it however you like! It is open-source after all!
do/while so they've all been replaced with while with a break on a negated condition.