Skip to content

ryosama/go-fire

Repository files navigation

Go-fire

A fire simulation writen in Go for educational purpose.

It use the Ebiten library for the 2D graphics engine

It use the Perlin library for generating cooling map

Install

$ go get -u github.com/hajimehoshi/ebiten
$ go get -u github.com/aquilax/go-perlin
$ go get -u github.com/ryosama/go-fire

Video

https://youtu.be/pWwr04q0-zE

Screenshot

Red Yellow color map

Yellow color map

White color map

Predator map

Documentation

  • [Up/Down] Increase or decrease the number of fire hotspots

  • [Left/Right] Increase or decrease the power of the flames

  • [C] Change the color map

  • [H] Display the commands and FPS

  • [S] Fix the hotspots places

  • [P] Pause the animation

  • [M] Mute the sound

  • [Alt+Enter] Toogle fullscreen

  • [Left Click] Draw a fire circle