Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 05b6580e7a
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (23 sloc) 0.605 kB
//
// BackgroundLayer.m
// PeerPong
//
// Created by Volker Tietz on 11/19/11.
// Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//
#import "BackgroundLayer.h"
@implementation BackgroundLayer
-(id)init {
self = [super init];
if (self) {
windowSize = [[CCDirector sharedDirector] winSize];
background = [CCSprite spriteWithFile:@"background_1024.png"];
background.position = CGPointMake(windowSize.width/2, windowSize.height/2);
[self addChild:background];
}
return self;
}
-(void)dealloc {
[super dealloc];
}
@end
Jump to Line
Something went wrong with that request. Please try again.