It's Coming!

We will be proudly releasing a brand new game and an update to kollide here sometime in the future! We would like to share a quick mockup/sneak peak of our new game!

mockup-2

You can play the game online at:http://scratch.mit.edu/projects/techy/781198 The graphics on the online version aren't as good as these new graphics will be... We will keep you posted!
0 Comments

Pong/Breakout Paddle Cocos2D Tutorial

Someone on the cocos2D-iphone forum needed a tutorial for a accelerometer pong/breakout paddle so here you go...

1.First make sure you have cocos2d 0.8.2 for this tutorial and create a new cocos2d iphone app, you can call it anything, I'll call it PongPaddle

2.Delete the HelloWorldScene files

3.Create a new Objective-C file that subclasses a NSObject and name it PongPaddleScene.m and include the .h file aswell...

4.In PongPaddleAppDelegate.m change the #import "HelloWorldScene.h" to #import "PongPaddleScene.h" That line of code will be at the top of the file...

5.In PongPaddleAppDelegate.m change the line
[[Director sharedDirector] runWithScene: [HelloWorld scene]];
to
PongPaddleScene *pongPaddleScene = [PongPaddleScene node];
[[
Director sharedDirector] runWithScene: pongPaddleScene];

6. Go to PongPaddleScene.h and add #import "Scene.h" and change
@interface PongPaddleScene : NSObject
to
@interface PongPaddleScene : Scene

7.Add:
paddle
to your project's resources

8.In PongPaddleScene.m change the code to:
#import "PongPaddleScene.h"
#import
"cocos2d.h"
#import
"Paddle.h"

@implementation PongPaddleScene
-(
id)init{
self = [super init];
if (self != nil) {
Paddle *paddle = [Paddle node];
[
self addChild:paddle];
}
return self;
}
@end

Notice: This code is for the next part

9.Now create another another file that subclasses an NSObject just like before except call it Paddle.m and include the .h file

10. Change Paddle.h to:

#import
#import
"Layer.h"

@interface Paddle : Layer {

}

@end

11.Now change Paddle.m to:
#import "Paddle.h"
#import
"Sprite.h"
#import
"cocos2d.h"

@implementation Paddle
-(
id)init{
self = [super init];
if (self != nil) {
Sprite *paddle = [Sprite spriteWithFile:@"paddle.png"];
paddle.
position = ccp(240, 20);
[
self addChild:paddle];
}
return self;
}
@end

Now the next part is actually adding the accelerometer which is pretty easy and will all be done in Paddle.m

12.
Right under [self addChild:paddle]; add self.isAccelerometerEnabled = YES;

13.Now we add [[
UIAccelerometer sharedAccelerometer] setUpdateInterval:(1.0 / 30)]; Under That...

14. now right before the @end add this code:
- (
void)accelerometer:(UIAccelerometer*)accelerometer didAccelerate:(UIAcceleration*)acceleration{

}

This is where we will move the paddle with the accelerometer

15. now inside of the code we just put add:

float acelx = -acceleration.y;
float x = acelx*20;



if (self.position.x > 0 && self.position.x < 480) {
self.position = ccp(self.position.x+x, self.position.y);
}
if (self.position.x < 55) {
self.position = ccp(56, self.position.y);
}
if (self.position.x > 435) {
self.position = ccp(434, self.position.y);
}



if (self.position.x < 55 && x > 1) {
self.position = ccp(self.position.x+x, self.position.y);
}

if (self.position.x > 435 && x < 0) {
self.position = ccp(self.position.x+x, self.position.y);
}

16. Hit build and Go and make sure you have it hooked up to a real device for accelerometer!

Download the source by clicking
here.

If you have any questions or comments please drop a comment!
0 Comments

Cocos2D Coming To Kollide!

We are going to give Kollide! a brand new makeover with cocos2d and we will add achievements and challenges for the game! So keep an eye out for Kollide 2!
0 Comments

Open Feint

We have decided to add a leaderboard to our game Kollide, so we looked into some things and decided on Open Feint, Maybe some of our feature games will be with Plus+ As for Mission Tap we are going to go down the cocos2d route and see what we can do with that.
0 Comments

Mission Tap

Mission Tap is our latest app that is still in development where you have the universe in you hands! The game is based upon our earlier mockup image(scroll down a little) with many levels and bosses! It will be a great challenge! For more info click here.
0 Comments