pack not used on first room.
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user