1
Fork 0
mirror of https://github.com/RGBCube/DOOM-fire-zig synced 2025-07-29 10:07:45 +00:00

Make doomfire cross-platform

This commit is contained in:
Jacob Hinchliffe 2022-01-16 16:37:20 +00:00
parent add37add17
commit 100a2abef5
3 changed files with 291 additions and 273 deletions

View file

@ -1,5 +1,5 @@
# DOOMFIRE
Test your TTY might!
## Test your TTY's might!
![demo](https://user-images.githubusercontent.com/76228776/149635702-a331f892-7799-4f7f-a4a6-7048d3529dcf.mp4)
@ -8,7 +8,10 @@ The doom-fire algo can push upwards of 180k a frame - results may vary! It is,
As a comparable, this is the younger sibling of a node variant ( https://github.com/const-void/DOOM-fire-node ).
# INSTALL
Tested on OX Monterey / M1 w/zig 0.9...unsure if it will work on Win or Linux, sadly, due to TIOCGWINSZ flag. No third party dependencies!
Tested on OX Monterey / M1 w/zig 0.9...
EDIT: Now tested on Artix Linux - links against libc to get the size of the TTY.
```
$ git clone https://github.com/const-void/DOOM-fire-zig/
@ -22,6 +25,7 @@ $ zig build run
* kitty.app - great
* Terminal.app - poor -- seems to drop framerates
* VS Code - great
* Alacritty (artix linux) - great
# Inspiration / Credits
* doom fire - https://github.com/filipedeschamps/doom-fire-algorithm, https://github.com/fabiensanglard/DoomFirePSX/blob/master/flames.html