Not sure if it’s because I’m using it wrong or if it’s intentional, but using
_r.rect() allows you to draw outside of the screen area.
_r.rotate() causes certain rectangles to continue drawing beyond the limits of the screen. This behaviour seems to be exclusive to
_r.rect(). It also only happens to rectangles that wouldn’t be cut by the screen if they were drawn at their actual location, not the new translated one.
Sprites and Quads seem to work fine.
GitHub link to tester code: https://github.com/dantheradarman/tu_arcade-001
[Made to offend the eyes]
It also seems to happen when the rectangle thinks it can’t be seen behind another rectangle. Some of the water squares and waves continue rendering upon going behind the island rectangle. (I turned the waves into rects rather than quads for demonstration purposes). I couldn’t recreate this one outside of this game, suggesting this may be an error with something I’m doing.