blob: a343a79c6052f2e161bf7d61ff8bc6f3de4349ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
(local corridor (require :src.corridor))
(local fennel (require :vendor.fennel))
(local state {})
(fn theload []
(set state.font (love.graphics.newFont :assets/APL333.ttf 72))
(set state.cur-room (corridor.make state)))
(fn update [dt]
(state.cur-room.update dt))
(fn draw [...]
(local b [...])
(print (fennel.view b))
(state.cur-room.draw))
{:load theload
: update
: draw}
|