summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2020-12-05 15:41:03 -0500
committerDavid Thompson <dthompson2@worcester.edu>2020-12-09 17:00:21 -0500
commitef98f8085b12314cf9dc57c71c20707aa21fa7ad (patch)
tree08ad731cfe702ddba9afc727886797b09f62a241 /examples
parent56b450c2268f2f18fc678c6943ee10a867b42dcd (diff)
graphics: sprite: Use dynamic geometry type.
Diffstat (limited to 'examples')
-rw-r--r--examples/sprite-batch.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/sprite-batch.scm b/examples/sprite-batch.scm
index 30d8167..4b8d433 100644
--- a/examples/sprite-batch.scm
+++ b/examples/sprite-batch.scm
@@ -38,11 +38,11 @@
(define (load)
(set! *random-state* (random-state-from-platform))
(set! texture (load-image "images/shot.png"))
- (set! batch (make-sprite-batch texture #:capacity 8000))
+ (set! batch (make-sprite-batch texture #:capacity num-sprites))
(script
(forever
(sleep 60)
- (set! stats-text (stats-message)))))
+ (set! stats-text (pk 'stats (stats-message))))))
(define stats-text-pos (vec2 4.0 464.0))
(define (draw alpha)