rotate_sprite_v_flip(3)

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

πŸ’« rotate_sprite_v_flip(3) πŸ’«

okay bestie, welcome to the Allegro manual β€” this page is rotate_sprite_v_flip, and she's a lil function from the Allegro game programming library who rotates a sprite and flips it. multitasking queen behavior honestly πŸ‘‘


🌸 SYNOPSIS 🌸

#include <allegro.h>

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

✨ DESCRIPTION ✨

so basically it's giving rotate_sprite, except before it does the rotating it flips the image vertically. that's the whole vibe. πŸ¦‹

wanna flip it horizontally instead? no worries bestie β€” use this same routine, but add itofix(128) to the angle. that's it. that's the trick. πŸ’…

and if you want to flip in both directions at once? then you call rotate_sprite() and add itofix(128) to its angle instead. don't mix them up, i'm literally begging πŸ™ˆ


πŸ‘€ SEE ALSO πŸ‘€


go read those too, fr fr β€” the whole flip-sprite family is iconic and you're gonna want the whole set πŸŽ€

mwah πŸ’– that's the page! brought to you by Allegro version 4.4.3, and yeah, this is rotate_sprite_v_flip(3) signing off β€” slay, go rotate something cute 🌈⭐

πŸ“¦ where this page comes from