DOOM-fire-zig
DOOM-fire-zig copied to clipboard
DOOM's fire algo, in zig, for 256 color terminals w/no dependencies
thread 6731 panic: index out of bounds: index 52304, len 15580 /home/manjaro/DOOM-fire-zig/src/main.zig:609:39: 0x233fb7 in showDoomFire (DOOM-fire) spread_px = screen_buf[doFire_idx]; ^ /home/manjaro/DOOM-fire-zig/src/main.zig:681:17: 0x231be9 in main (DOOM-fire) showDoomFire(); ^ /usr/lib/zig/std/start.zig:574:37: 0x23164e in...
I just tested iterm vs vscode vs warp on my machine (screen size: 153x36) and results surprised me (its almost 6x faster than iterm!), so i decided to share: Warp...
Fixes for the latest os -> posix changes
``` diff --git a/build.zig b/build.zig index 175bc4f..0c3692b 100644 --- a/build.zig +++ b/build.zig @@ -13,7 +13,7 @@ pub fn build(b: *std.Build) void { const exe = b.addExecutable(.{ .name = "DOOM-fire", -...
Does anyone else see this build issue on Ubuntu? ``` $ zig build ... ... +- install DOOM-fire +- zig build-exe DOOM-fire Debug native 1 errors /home/hulk/opt/zig-linux-x86_64-0.13.0/lib/std/c.zig:1677:12: error: dependency on...
``` thread 112849 panic: index out of bounds: index 43744, len 5856 /home/user/src/DOOM-fire-zig/src/main.zig:623:39: 0x1040873 in showDoomFire (DOOM-fire) spread_px = screen_buf[doFire_idx]; ^ /home/user/src/DOOM-fire-zig/src/main.zig:695:17: 0x103dda9 in main (DOOM-fire) showDoomFire(); ^ ``` Zig...
zig version 0.13.0 MacOS 15.3 Tested on iTerm2 and Ghostty. Build succeeds, opens the splash screen, then on Enter it crashes as below. Error: ``` thread 9473501 panic: index out...
Zig 0.15
I'm new to Zig and am welcome to suggestions on how to improve this PR. With `zig build run -Doptimize=ReleaseFast` I get similar performance than on 0.14, but with the...
Build error on MacOS: error: no field named 'root_source_file' in struct 'Build.ExecutableOptions'
zig version: 0.15.1 MacOS: 15.6.1 Compilation fails on fresh clone. % git clone https://github.com/const-void/DOOM-fire-zig/ % cd DOOM-fire-zig/ % zig build run build.zig:20:10: error: no field named 'root_source_file' in struct 'Build.ExecutableOptions'...