From fda1d9d08349dfe103b7af3ef8f305c1701933f6 Mon Sep 17 00:00:00 2001 From: Colin Okay Date: Wed, 6 Jul 2022 09:33:14 -0500 Subject: [refactor] containers have render bounds --- src/interactive/sprite.lisp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/interactive/sprite.lisp') diff --git a/src/interactive/sprite.lisp b/src/interactive/sprite.lisp index 81f5715..03bba8d 100644 --- a/src/interactive/sprite.lisp +++ b/src/interactive/sprite.lisp @@ -40,3 +40,6 @@ `(progn ,@defs)))) (def-sprite-accessors x y scale-x scale-y width height rotation)) + +(defmethod get-rect ((sprite sprite)) + (get-rect (current-frameset sprite))) -- cgit v1.2.3