Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 68 lines (53 sloc) 1.299 kB
//
// LevelSelection.m
// MooeeMath
//
// Created by Cyril Gaillard on 20/12/10.
// Copyright 2010 Voila Design. All rights reserved.
//
#import "Level18.h"
#import "CurrentLevel.h"
#import "TransitionPage.h"
#import "SharedFunctions.h"
@implementation Level18
//@synthesize row;
+(id) scene
{
// 'scene' is an autorelease object.
CCScene *scene = [CCScene node];
// 'layer' is an autorelease object.
Level18 *layer = [Level18 node];
// add layer as a child to scene
[scene addChild: layer];
// return the scene
return scene;
}
-(id) init
{
// always call "super" init
// Apple recommends to re-assign "self" with the "super" return value
if( (self=[super init] )) {
[[CurrentLevel sharedCurrentLevel] setLevelNumber:[NSNumber numberWithInt:9]];
[[CurrentLevel sharedCurrentLevel] setCurrentScore:[NSNumber numberWithInt:0]];
// ask director the the window size
size = [[CCDirector sharedDirector] winSize];
numberofIterations = 0;
displayBackground(self, @"Level1BG.png");
displayPauseButton(self);
displayMooee (self);
levelItems = read_pList();
}
return self;
}
- (void) showPausePage: (CCMenuItem *) menuItem
{
pausePagePresent = YES;
}
- (void) repeatSound: (CCMenuItem *) menuItem
{
}
- (void) dealloc
{
[super dealloc];
}
@end
Jump to Line
Something went wrong with that request. Please try again.