Memory safety with out-of-range sprites #2325
Answered
by
Bodmer
motoani
asked this question in
Q&A - Sprites
-
I'm finding this library a massive asset and time saver but am wondering if I'm over complicating. My quick scan of the Sprite.cpp suggests that it's not safe to push a sprite to a sprite with negative position which would be useful to allow a sprite to pass beyond (0,0) and move off screen smoothly. There is a cropped sprite to TFT method, but not sprite to sprite. Do I have to make a set of narrow sprites to pass off the screen edge? |
Beta Was this translation helpful? Give feedback.
Answered by
Bodmer
Jan 16, 2023
Replies: 1 comment 1 reply
-
The library automatically handles the clipping (via the PI_CLIP macro), so this is safe. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Bodmer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The library automatically handles the clipping (via the PI_CLIP macro), so this is safe.