tmx→lisp.lisp 622 B

1234567891011121314151617181920212223
  1. (ql:quickload '(alexandria cl-tiled assoc-utils str uiop))
  2. (load "packages.lisp")
  3. (load "util.lisp")
  4. (load "overworld.util.lisp")
  5. (load "overworld.tiled.lisp")
  6. (defun local-path (subpath)
  7. (format nil "~A~A" (uiop:getcwd) subpath))
  8. (mapcar
  9. (lambda (map-name)
  10. (🌍.…::save-map-to-file
  11. (local-path (format nil "res/maps/~A.tmx.lisp" map-name))
  12. (overworld.tiled:load-map (local-path (format nil "res/maps/~A.tmx" map-name)))
  13. ":FLORA-SEARCH-AURORA"
  14. (format nil "*~A-map-plist*" map-name)))
  15. '("base" "casino" "factory" "flashback-base" "flashback-casino"
  16. "flashback-school" "outdoors"))
  17. (quit)