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