I am creating an iphone application and for some reason, the instructions are not coming up when I run the code. This is my instructions class. When I run the program, nothing shows up.
Shouldn't "The object of this game is" show up on the screen?
Thank you for whatever help/knowledge you can provide me :)
#import "Instructions.h"
#import "MainMenu.h"
@implementation Instructions
+ (CCScene *) scene
{
CCScene * scene = [CCScene node]; // scene is an autorelease object
Instructions * layer = [Instructions node]; // later is an autorelease object
[scene addChild: layer]; // add layer as a child to scene
return scene; // return the scene
}
- (id) init
{
if ( ( self = [super init] ) )
{
[ self how ];
}
return self;
}
- (void) how
{
NSLog(@"The object of this game is ");
}
@end