Doom Fire Animation with PPM and mpv

Published on

Welcome back to Let’s Reinvent the Wheel. In this project, we bring the iconic “Doom Fire” animation to life using pure C11, the simplest PPM image format, and mpv as our display engine. If you want to make fire on your terminal with zero dependencies beyond your compiler and a media player, this is the perfect starting point.


What You’ll Learn

In this episode, you will:

By the end, you’ll have a pixel fire demo that’s blazing on your screen and ready for further hacks (all of that without touching any graphics libraries).


Project Code

You’ll find the complete source code here: doomfire

How it works:

To run:

gcc -std=c11 -O3 -o doomfire doomfire.c
./doomfire | mpv -

No graphics dependencies, no window management - only mpv as MVP


Tweak and Expand


External Resources

If you want to dig deeper, check out these resources:


Stay in the Loop

Have questions or ideas for more coding adventures? Drop a comment on the video, or suggest the next project idea you want to reinvent!

Thanks for following along, and until next time. Keep reinventing!