All Data Structures Files Functions Variables Enumerations Enumerator Properties Defines
/Projects/Cogito/src/Scenes/GameScene.m
Go to the documentation of this file.
00001 //
00002 //  GameScene.m
00003 //  Author: Thomas Taylor
00004 //
00005 //  The main 'scene' in the game
00006 //
00007 //  13/11/2011: Created class
00008 //
00009 
00010 #import "GameScene.h"
00011 
00012 @implementation GameScene
00013 
00014 #pragma mark -
00015 #pragma mark Initialisation
00016 
00021 -(id)init 
00022 {
00023     self = [super init];
00024     
00025     if (self != nil) 
00026     {
00027         // Background Layer
00028         BackgroundLayer *backgroundLayer = [BackgroundLayer node];
00029         [self addChild:backgroundLayer z:0];
00030         
00031         // Gameplay Layer
00032         GameplayLayer *gameplayLayer = [GameplayLayer node];
00033         [self addChild:gameplayLayer z:10];
00034     }
00035     
00036     return self;
00037 }
00038 
00039 @end