Marisa the Magician 605798b51b | ||
---|---|---|
palettes | ||
zscript | ||
Pad_FX.ftx | ||
README.md | ||
RGB8LUT.png | ||
animdefs.txt | ||
screenshot.png | ||
zmapinfo.txt | ||
zscript.txt |
README.md
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), 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