summary refs log tree commit diff
path: root/lib/main.fnl
diff options
context:
space:
mode:
authorequa <equaa@protonmail.com>2021-04-18 20:22:20 -0500
committerequa <equaa@protonmail.com>2021-04-18 20:42:59 -0500
commitca870dab91daee38b8d55ac6d2f2b4fd6959c6ac (patch)
tree1b0445da67552162eac4e72e39330a777af7f7b6 /lib/main.fnl
parent78530480d35be5dbb57f1a264147bec48d6cf800 (diff)
entities et al
Diffstat (limited to 'lib/main.fnl')
-rw-r--r--lib/main.fnl10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/main.fnl b/lib/main.fnl
index 03383ad..8e4908a 100644
--- a/lib/main.fnl
+++ b/lib/main.fnl
@@ -10,7 +10,8 @@
 ;; i'm not sure if it'd be worth it (it'd require those dependency loops maybe)
 ;; TODO: ^
 (local hotswap-modules
-  [:lib.cells
+  [:lib.player
+   :lib.cells
    :lib.game
    :lib.main])
 
@@ -19,11 +20,11 @@
 
 (fn love.load []
   (when profi?
-    (profi:start))
-  (set love.frame 0)
+    (profi:start)
+    (set love.frame 0))
   (love.keyboard.setKeyRepeat true)
   (global the-state (state.init game))
-  (global messages {})
+  (global messages (or messages {}))
   (print "a"))
 
 (fn love.draw []
@@ -46,7 +47,6 @@
           (table.remove messages i)
           (set v.ticks (- v.ticks 1))))))
 
-;; TODO: we need a better way to display errors at runtime for updates too
 (fn love.update []
   (when profi?
     (profi:startHooks)