ROTATE_SPRITE_V_FLIP_LIT(3alleg4)

πŸ’« rotate_sprite_v_flip_lit β€” Allegro manual, section 3alleg4 ✨

okay bestie, gather round, we're doing Allegro graphics today and honestly? this one is a bop πŸŽ€


🌸 NAME 🌸

rotate_sprite_v_flip_lit β€” rotates and flips a sprite. it's giving ✨multitasking✨. part of the Allegro game programming library, no cap.


πŸ’… SYNOPSIS πŸ’…

#include <allegro.h>

void rotate_sprite_v_flip_lit(BITMAP *bmp, BITMAP *sprite, int x, int y,
fixed angle);

πŸ¦‹ DESCRIPTION πŸ¦‹

so it's literally rotate_sprite_lit, right? but bestie... it flips the image vertically first, then rotates it. main character behavior honestly πŸ”₯

now listen, because this part matters and i'm not gonna let you get it wrong:

  • wanna flip horizontally instead? use this exact routine, but add itofix(128) to the angle. that's the hack, iykyk πŸ’–
  • wanna flip in both directions? then you gotta switch it up β€” use rotate_sprite() and add itofix(128) to its angle. different function, same energy. slay πŸ’…
not me making you read the SEE ALSO for a flip combo, but that's just how it is bestie 😭

πŸ‘‘ SEE ALSO πŸ‘‘


that's the whole page bestie, we ate and left no crumbs πŸ“βœ¨

signing off with love from Allegro, version 4.4.3 πŸ’– β€” mwah, go flip some sprites πŸ§šβ€β™€οΈπŸŒˆ