diff --git a/doom_fire.lua b/doom_fire.lua index d75ebe2..41b1605 100644 --- a/doom_fire.lua +++ b/doom_fire.lua @@ -51,6 +51,13 @@ function TIC() dofire() end t=t+1 + + -- put off fire after 3 seconds + if t == 3*60 then + for i=width*(height-1),width*height do + base[i] = 0 + end + end end --