Archive for September, 2009

September 29, 2009 9

Creating a global object in objective-C

By admin in Uncategorized

This is a very simple idea, and one that’s useful for settings. You might have a settings screen, and your actual little game and they need to read from (the game) and write to (the settings screen) from an object they can both access. This simple concept took a lot of googling to find out [...]

Tags:

September 27, 2009 0

Milestone

By admin in Uncategorized

So here we are, a solid month later – and i’ve finally submitted something to the app store. It’s been a real amazing learning process, i’m so glad I started undertaking it. When I look at objective-c now, it makes sense to me finally and that took a long time with my thick skull. I [...]

Tags:

September 23, 2009 3

Box2D – Quick bomb explosion / implosion.

By admin in Uncategorized

So I wanted to apply a bomb, to my small physics based app I’m creating. However I found out that in Box2D, there’s no built in method to do that. Which after reading a little more into it, makes sense. So what you do is apply force to all the objects yourself, OR you can [...]

Tags:

September 23, 2009 0

Rename Xcode Project

By admin in Uncategorized

I really like this great app for a seemingly simple problem, that everyone has had. You should probably read about how to do it by hand, but this app also works just make sure you know what it’s doing for you. Once you run it you’ll have to, rename a few of the .m/.h files [...]

Tags:

September 19, 2009 3

Throwing an object

By admin in Uncategorized

This is how you throw an object, or at least how I chose to do it coming from an AS background. You’ll need two pieces information for this, which are where the touches started and where they are when they end.  So go ahead and make a property in the header file. @interface HelloWorld : [...]

Tags:

September 17, 2009 1

Notes on Cocos2D + Box2D

By admin in Uncategorized

Here are a few notes I found myself wondering about when digging into Box2D + cocos2D. First things first, your classes that use Box2D will have to have the extension .mm, this tells xcode that you are mixing objective-c with cpp. The most important thing to note is that Box2D uses meters, and Cocos2D/Iphone of [...]

Tags: ,

September 17, 2009 3

Cocos2d+Box2D+Box2DWorld+AtlasSpriteManager

By admin in Uncategorized

In this project you will find: Cocos2d 8.1 working with Box2d Box2D world created on init AtlasSpriteManager created to manage the sprites also: schedule function that creates a different colored ball randomly and adds it to the world a different colored ball is created and placed in the scene when the screen is touched at [...]

Tags:

September 15, 2009 0

Cocos2D + Box2D

By admin in Uncategorized

For my first little play app, i built a little thing that had circles falling from the sky, and you could grab and toss them with speed based on the flick you applied. However I instituded my own “physics” for all the bouncing, because i couldn’t get cocos2d and box2d to work together. I noticed [...]

Tags:

September 15, 2009 0

And we’re on!

By admin in Uncategorized

So i took a hiatus, I took a beautifully long trip to spain with my girlfriend. I’m back now, and I finally have an ipod touch to actually try to put things on. – I stumbled on cocos2d framework, and it’s really great. The way it’s structured is excellent, and if you’re coming from an [...]

Tags: