rotate_sprite_v_flip_lit(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

🌸 NAME 🌸

okay so bestie, this is the rotate_sprite_v_flip_lit(3) page from the Allegro manual β€” and she does exactly what it says on the tin, no cap. πŸ’–

rotate_sprite_v_flip_lit β€” Rotates and flips a sprite. Allegro game programming library. Periodt. ✨


✨ SYNOPSIS ✨

#include <allegro.h>

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

πŸ’… DESCRIPTION πŸ’…

Lowkey, this one is giving major rotate_sprite_lit energy, but before it does the whole rotation thing, it flips the image vertically first. πŸ¦‹ Like, flip first, rotate second. That's the whole vibe.

Wanna flip horizontally instead? Bestie, use this exact routine but add itofix(128) to the angle. πŸ’…βœ¨

And if you need to flip in both directions? Use rotate_sprite() and add itofix(128) to its angle. That's the move. πŸŽ€


πŸ¦‹ SEE ALSO πŸ¦‹


xoxo, this was rotate_sprite_v_flip_lit(3) from the Allegro manual, version 4.4.3 β€” signing off, bestie πŸ’–πŸ«Άβœ¨

πŸ“¦ where this page comes from