|
|
"Create Rotation Frames", by ghost dancer
|
Basically a nifty little function which you use instead of LoadImage or LoadAnimImage. Specify how much you want to rotate the image by and how many times to rotate it - it will then create a new image object with all the new rotation frames.
For example, I've used this in my Galactus game. There is only one sprite for each ship - the function creates the rotation frames for me when the game is loaded :) |
| Code | | | |