NOW FEATURED IN A GAME: https://scratch.mit.edu/projects/116573592/ Press green flag. Fire follows the mouse. Fire simulated by a cellular automata. Each cell is the average of the cells to the bottom left and right as well as the cell directly below and two below. The bottom row is generated randomly.
sound from here: http://soundbible.com/1902-Fire-Burning.html code from here: http://lodev.org/cgtutor/fire.html#The_Classic_Fire_Effect