Jaidyn Ann
74d713b76d
This allows embedding the map data directly into the game system, instead of relying on external files! This’ll make distribution easier, for sure. =w=
18 lines
509 B
Common Lisp
18 lines
509 B
Common Lisp
(ql:quickload '(alexandria cl-tiled assoc-utils str uiop))
|
|
(load "util.lisp")
|
|
(load "overworld.util.lisp")
|
|
(load "overworld.tiled.lisp")
|
|
|
|
(defun local-path (subpath)
|
|
(format nil "~A~A" (uiop:getcwd) subpath))
|
|
|
|
|
|
(mapcar
|
|
(lambda (map-name)
|
|
(🌍.…::save-map-to-file
|
|
(local-path (format nil "res/maps/~A.tmx.lisp" map-name))
|
|
(overworld.tiled:load-map (local-path (format nil "res/maps/~A.tmx" map-name)))
|
|
":FLORA-SEARCH-AURORA"
|
|
(format nil "*~A-map*" map-name)))
|
|
'("casino" "outdoors"))
|