summaryrefslogtreecommitdiff
path: root/world.fnl
diff options
context:
space:
mode:
Diffstat (limited to 'world.fnl')
-rw-r--r--world.fnl2
1 files changed, 1 insertions, 1 deletions
diff --git a/world.fnl b/world.fnl
index 947b7bc..d0870ae 100644
--- a/world.fnl
+++ b/world.fnl
@@ -333,7 +333,7 @@
;; error out if either 'maps/${name}.png' or 'maps/${name}.fnl' do not exist.
(fn new-world [name player]
(let [tiles-path (.. "maps/" name ".png")
- meta-path (.. "maps/" name ".fnl")
+ meta-path (.. (love.filesystem.getSource) "/maps/" name ".fnl")
res (load-tiles (love.image.newImageData tiles-path))
res (lume.extend res {:player player})
res (lume.extend res {:slimeballs []})