aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/interactive
diff options
context:
space:
mode:
authorColin Okay <colin@cicadas.surf>2022-07-21 08:15:57 -0500
committerColin Okay <colin@cicadas.surf>2022-07-21 08:15:57 -0500
commit3782dddb07974f1b1b79478d2f96384498e81bf4 (patch)
tree1dd4a83aa84c5f2272c2db05e70ca45404070389 /src/interactive
parent4da8c16d60a61eff5a1cb03e6573a4d43b3abd09 (diff)
[refactor] make-frameset to use clearler naming
Diffstat (limited to 'src/interactive')
-rw-r--r--src/interactive/frameset.lisp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/interactive/frameset.lisp b/src/interactive/frameset.lisp
index 86f445d..3ffbc18 100644
--- a/src/interactive/frameset.lisp
+++ b/src/interactive/frameset.lisp
@@ -47,7 +47,6 @@
(defmethod render ((fs frameset))
(render (current-frame-unit fs)))
-
(macrolet
((def-frameset-accessors (&rest accessor-names)
(let ((defs
@@ -73,7 +72,7 @@
(defun make-frameset (sequenced-assets &key (fps 2) asset-args)
(let* ((asset-names
(remove-duplicates sequenced-assets :test #'equal))
- (assets
+ (images
(loop for name in asset-names
collect
(make-instance
@@ -84,6 +83,6 @@
collect (position name asset-names :test #'equal))))
(make-instance
'frameset
- :frames (make-array (length assets) :initial-contents assets)
+ :frames (make-array (length images) :initial-contents images)
:sequence (make-array (length sequence) :initial-contents sequence)
:wait-time (/ 1000.0 fps))))