edtris/game/mode.fnl
2021-02-07 16:56:19 -05:00

13 lines
217 B
Fennel

(local state (require :game.state))
(fn update [dt]
(each [_ entity (ipairs state.entities)]
(entity:update dt)))
(fn draw []
(each [_ entity (ipairs state.entities)]
(entity:draw)))
{: update : draw}