iOS7 Sprite Kit for Game Design for iPhone & iPad

iOS 7 Series – Sprite Kit Welcome to iOS7 and to start off, I want to kick things off with SpriteKit.  Although it deals with video games, many companies are using iOS apps as a marketing tactic to engage their users in an effort to promote their products. SpriteKit is the most prominent feature in iOS7 so we’re going to take a quick tour.  Go ahead and create a New Project in XCode5 and select the SpriteKit template (the bottom right icon): Click next and fill in your project data.  Once you are in the main XCode window notice we have the following files in the Project Navigator: 1)   AppDelegate… Read More

Continue Reading

Cocos2d Tips: Connect Layers

Games have many layers. The most common example is the main action layer (where the players and enemies are) having to communicate with the HUD layer (which presents score, health and other info) to the gamer. Let’s see how we can communicate between layers. Typically you create a Scene and then a Layer in order to add that Layer as a child to the Scene. Let’s say our Scene.h looks like this: #import <Foundation/Foundation.h> #import “cocos2d.h” @interface Scene1 : CCScene { } @end And our Scene.m looks like this: -(id)init { if ((self = [super init])) { Scene1ActionLayer * actionLayer = [[[Scene1ActionLayer alloc] init] autorelease]; [self addChild:actionLayer z:0 tag:kActionLayer]; }… Read More

Continue Reading