diff options
author | Colin Okay <colin@cicadas.surf> | 2022-07-06 09:33:14 -0500 |
---|---|---|
committer | Colin Okay <colin@cicadas.surf> | 2022-07-06 09:33:14 -0500 |
commit | fda1d9d08349dfe103b7af3ef8f305c1701933f6 (patch) | |
tree | 5cb896cf87d140df5bd05cb1f56566cfb0f17407 /src/interactive/sprite.lisp | |
parent | 8c94460d8c8f8b44ca9bcdebbf2906e84c969b19 (diff) |
[refactor] containers have render bounds
Diffstat (limited to 'src/interactive/sprite.lisp')
-rw-r--r-- | src/interactive/sprite.lisp | 3 |
1 files changed, 3 insertions, 0 deletions
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))) |