From 5473d5d303b55b06438d65c4b3abd2fc0b0f86fc Mon Sep 17 00:00:00 2001 From: equa Date: Thu, 22 Apr 2021 22:18:58 -0500 Subject: very messy music --- lib/cells.fnl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/cells.fnl') diff --git a/lib/cells.fnl b/lib/cells.fnl index e415f21..5cc104e 100644 --- a/lib/cells.fnl +++ b/lib/cells.fnl @@ -1,4 +1,5 @@ (local cell (require :lib.cell)) +(local music-state (require :lib.music-state)) (local neighbors [{:x -1 :y -1} {:x -1 :y 0} @@ -84,6 +85,7 @@ nil)) cell.update (fn [self get] + (set music-state.fire (math.max music-state.fire self.life)) (if (> self.life 0.3) (setmetatable {:life (* self.life (+ 0.5 (* (math.random 5) 0.1)))} (getmetatable self)) nil)) -- cgit 1.3.0-6-gf8a5