Get rotated sprites with v.getSprite(2)Patch

Merged colette requested to merge fickleheart/SRB2:lua-hud-get-rotsprites into next

NOTE: since rotated sprites are offset upward by 4px from non-rotated sprites, these functions will now return a third boolean (true) if a rotated sprite was returned, so that scripters can offset accordingly.

hi lmao here's some more garbage

(it's in the upper-left corner - yes I know it's not a real good visible example)

bonus hack: use this in your lua mod to pre-cache sprites you know will get rotated in a level by adding a titlecard HUD hook 👋

Edited by colette

Merge request reports