summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Okay <okay@toyful.space>2019-04-15 14:59:18 -0500
committerColin Okay <cbeok@protonmail.com>2020-10-12 09:37:42 -0500
commit0746e6c31841628a0e86da65b47634528763bcba (patch)
tree70f904230f6dce746a39b45eed4984f99790ea64
parent2c1a879627f891183043a66949077ce4d8c70a1c (diff)
changed speed at which grid search increases size
-rwxr-xr-ximbricate.ros5
1 files changed, 3 insertions, 2 deletions
diff --git a/imbricate.ros b/imbricate.ros
index b25d9d1..7d419ca 100755
--- a/imbricate.ros
+++ b/imbricate.ros
@@ -134,7 +134,7 @@ exec ros -Q -- $0 "$@"
(when (unfilled-over-rect grid x y width height)
(return-from search-loop (list x y)))))
(progn
- (adjust-array grid (list (* 2 gw) (* 2 gh)) :initial-element nil)
+ (adjust-array grid (list (+ width gw) (+ height gh)) :initial-element nil)
(search-loop)))))
(search-loop)))
@@ -147,6 +147,7 @@ exec ros -Q -- $0 "$@"
(tilesheet (pack-images packlist))
(tile-index (packlist->tile-index packlist)))
(imago:write-png tilesheet (format nil "~a.png" target))
- (write-tile-index tile-index (format nil "~a-index.lisp" target))))
+ (write-tile-index tile-index (format nil "~a-index.lisp" target))
+ (write-tile-index *bad-images* (format nil "~a.bad.txt" target))))
(format t "ALL DONE~%"))
;;; vim: set ft=lisp lisp: