Game Development Reference
In-Depth Information
Comet detail
7-5 , we see a zoomed-in detail of a comet. It is composed of many particles, each one
Comet class and see
Comet class.
VARIATION_RED = 0,
VARIATION_GREEN,
VARIATION_BLUE,
VARIATION_CYAN,
VARIATION_MAGENTA,
VARIATION_YELLOW,
VARIATION_COUNT
};
@interface Comet : Actor<VectorRepresentationDelegate> {
}
+(id)comet:(GameController*)controller;
@end
In Listing 7-23, we see that Comet extends Actor and conforms to the protocol
VectorRepresentationDelegate . There is a single constructor, taking a GameController as the only
argument. Let's look at the implementation of this constructor, shown in Listing 7-24.
 
Search WWH ::




Custom Search