diff --git a/README.md b/README.md new file mode 100644 index 0000000..673359a --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +![](screenshot.png) + +## Proof-of-concept porting/recreating FireTexture in ZScript + +Exactly what it says on the tin. Much reverse engineering and guesswork was involved to try to get this stuff to look and behave as close as possible to the real deal. + +It is in no way practical to use due to the severe performance hit of more than one texture *(yeah, I've tested this in [Doomreal](https://github.com/OrdinaryMagician/stinger_m))*, but hey, it works, so it's neat that I managed to get that far. + +Main performance hogs here are the fire spread code *(`CalcWrapFire()` and `CalcSlowFire()`)*, as well as the render function which blits the raw texture one pixel at a time to the canvas *(there is currently no faster way to do this)*. Fortunately, `Render()` only has to be called immediately after `Tick()`, rather than every frame. + +Anyway, feel free to ogle the horrendous code of this thing, just for curiosity's sake. + +— Marisa \ No newline at end of file diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000..3ea7c7f Binary files /dev/null and b/screenshot.png differ