December 2002
Intermediate to advanced
648 pages
19h 53m
English
The cSpriteLoop and cSpriteDirectional sprites are arrays of other sprites. As they inherit from cSpriteComposite they have an add method that adds new sprites into the array. You can feed cSpriteComposite::add method either a cSprite * pointer as an argument or simply an integer resource ID number as an argument – in the latter case the add(resourceID) method constructs a new cSpriteIcon(resourceID) and then adds that sprite.
People often want to use sequences of bitmaps for their sprites. Suppose you have three successive bitmaps for a walking man and that you’ve saved them as resources with IDs of the form IDB_MAN1. To simplify things the Pop Framework lets you pass in a resource ID as the argument ...
Read now
Unlock full access