HomeForumsGeneral DiscussionWhat is the point of CCZSprite

This topic has 2 voices, contains 1 reply, and was last updated by  CyberGreg 152 days ago.

Viewing 2 posts - 1 through 2 (of 2 total)
Author Posts
Author Posts
December 19, 2011 at 9:11 am #583

GPP

I noticed that in the Items Class, the objects were subclassed of LevelObjects, which included an @class declaring, among other classes, CCZSprite.

A jump to definition reveals that CCZSprite is a subclass of CCSprite (makes sense) with a draw method which calls

@implementation CCZSprite
-(void) draw
{
    gEnable(GL_ALPHA_TEST);
    gAlphaFunc(GL_GREATER, 0.0f);
    [super draw];
    glDisable(GL_ALPHA_TEST);
}
@end

Why did you create this subclass, Nat?

December 19, 2011 at 2:12 pm #2217

CyberGreg

See this blog post:
http://www.iphonegamekit.com/blog/code/cczsprite-and-hudlevelsprite-two-cocos2d-extensions-you-need-to-know-about/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.