first attempt at saving/loading.

This commit is contained in:
2014-11-22 13:00:40 -08:00
parent 64e0176e76
commit 54b1f1497a
3 changed files with 40 additions and 27 deletions

View File

@@ -33,7 +33,8 @@
(defmacro get-script [entities & forms]
`(fn [starting-entities#]
(let [~entities (atom starting-entities#)]
(thread ~@forms))))
(thread ~@forms
(utils/save @~entities)))))
(defn jump-to [screen entities entity [x y] update-baseline?]