Skip to content

Commit

Permalink
Started working on the tap symbol, nowhere there yet.
Browse files Browse the repository at this point in the history
  • Loading branch information
xeloader committed Apr 5, 2014
1 parent acfe4ec commit a8c79b5
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 28 deletions.
Binary file not shown.
20 changes: 20 additions & 0 deletions Penguin Train/GameRender.m
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,26 @@ - (void)stopCountdown {

}

- (void)showTapToStartSymbol {

SKSpriteNode *tapSymbol = (SKSpriteNode *)[self childNodeWithName:@"tap-symbol"];

if(!tapSymbol) {

tapSymbol = [SKSpriteNode node];

tapSymbol.name = @"tap-symbol";
tapSymbol.color = [UIColor blackColor];
tapSymbol.size = CGSizeMake(32, 32);

}

Block *firstBlock = [self.currentGame.trains[0] headBlock];

tapSymbol.position = firstBlock.point; //edit later.

}

- (void)countdownAndStartgame {

self.paused = NO;
Expand Down
31 changes: 3 additions & 28 deletions Penguin Train/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -31,29 +31,14 @@ @interface ViewController() {

@implementation ViewController

- (void)viewDidLoad
{
- (void)viewDidLoad {
[super viewDidLoad];

[self presentGameScene];

}

- (void)viewDidAppear {

if(YES) {

//[defaults setBool:NO forKey:@"first"];

//[[[[UIApplication sharedApplication] delegate] window] setRootViewController:viewController];
//[self presentViewController:viewController animated:YES completion:nil];

} else {

}

}

- (void)presentGameScene {

/*Messaging between subviews*/
Expand Down Expand Up @@ -170,11 +155,6 @@ - (void)showAd {

//}

}
- (IBAction)tweet:(id)sender {



}

- (void)showHighscoreOf:(NSInteger)score {
Expand Down Expand Up @@ -205,12 +185,7 @@ - (void)fetchGoogleAd {
@"566cec4b6d686932e8bbdcff3261a1c699d1fb35", //min
@"31af3530f342a6a428830ed6caf88bd5891e8eda", //pappa
@"d327c47116d7e7f84cfed831d6dd742c11926d1d", //johanna
];
request.additionalParameters = @{
@"color_bg":@"D4DCE0"
};*/
];*/

[gad loadRequest:request];

Expand Down

0 comments on commit a8c79b5

Please sign in to comment.