diff options
Diffstat (limited to 'src/rooms.fnl')
-rw-r--r-- | src/rooms.fnl | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/rooms.fnl b/src/rooms.fnl new file mode 100644 index 0000000..a343a79 --- /dev/null +++ b/src/rooms.fnl @@ -0,0 +1,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} + + |