pack not used on first room.

This commit is contained in:
Bryce Covert
2017-05-28 06:41:36 -07:00
parent ad38708873
commit 36b83cd1e8
6 changed files with 167 additions and 19 deletions

View File

@@ -190,13 +190,13 @@
(Long/MIN_VALUE)
(- (Long/parseLong (:id s))))))))
(defn snapshot-screenshots []
(defn snapshot-screenshots [atlas]
(doall (for [snapshot (snapshot-list)]
(assoc-in snapshot [:screenshot]
(try (let [bytes (steam/get-bytes (:screenshot snapshot))]
(texture (Pixmap. ^bytes bytes 0 (count bytes))))
(catch Exception e
(get-texture (saves/default-screenshot (:state snapshot)))))))))
(atlas->texture atlas (saves/default-screenshot (:state snapshot)))))))))
(defn save-chapter [entities chapter]
(let [prefs (.getPreferences (Gdx/app) "ticks-tales-saves")