edtris/game/mode.fnl

13 lines
217 B
Plaintext
Raw Normal View History

2021-02-07 21:56:19 +00:00
(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}