Draws the sprite transformed to the destination bitmap.
These are like draw_sprite(), but they additionally flip the image
vertically, horizontally, or both, respectively. Flipping vertically
means that the y-axis is reversed, while flipping horizontally means
that the x-axis is reversed, between the source and the destination.
This produces exact mirror images, which is not the same as rotating the
sprite (and it is a lot faster than the rotation routine). The sprite
must be a memory bitmap. Example:
draw_sprite(screen, hero_right, pos_x, pos_y);
else if (key[KEY_LEFT])
draw_h_sprite(screen, hero_right, pos_x, pos_y);
draw_sprite(screen, hero_idle, pos_x, pos_y);
The following threads each have code containing this keyword:
Note: You can click on the numbers to jump directly to the posts that reference this page.
The following projects include source code containing this keyword: