13 lines
217 B
Fennel
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}
|
|
|