By
Walter Reid | Published on
April 11, 2011 in
Advanced, Cocos2d and Tower Defense.
Tags: casual game, cocos2d, code, defense, game, game mechanics, learn cocos2d, objective-c, programming, Script, source, source code, tower, tower defense game, tower defense games, tutorial.
We’ve been doing a lot of simple game mechanics and one of our favorite for a long time has been the tower defense game – So in an effort to do this right, since programming this will take some time, lets talk a little tower defense design and goals.
Tower Defense Description:
- The enemy starts at one side of a map and travels along a path towards a destination ( usually on the opposite side of the map).
- You create towers along these paths that fire on the enemy while they pass through.
Attempt to survive wave after wave of stronger and stronger enemies by upgrading your towers with more powerful abilities.
- You can either win the game by beating the final wave (usually 20 to 50 waves) or keep going till you lose and there by get bragging rights when you die at wave 97.

A simple tower defense game tutorial for the iphone
There is not a “casual game” that better defines the word casual – The player makes a simple placement of a towers and make small upgrades while the battle unfolds. Who hasn’t played a tower defense game and lost on the 48th level of a 50 level game, because you didn’t plan for multiple types of enemies to attack at the same time. You can literally spend hours revising tower defense games to see if you can “beat” the game faster, get the most money or just win with the fewest towers.
Continue reading ‘How To Build a Tower Defense Game for the iPhone’
By
Walter Reid | Published on
September 10, 2010 in
Beginner, Cocos2d and Getting Started.
Tags: ccaction, ccmoveto, cctouchbegan, cctouchended, cgpoint, class, cocos2d, code, converttonodespace, coordinatesdegrees, distance, dragon, iphone, istouchenabled, objective-c, radians, runaction, stopaction, touchlocation, tutorial, uievent, uitouch, vector, view.
So last we left, we left our dragon in the middle of a field hovering above the landscape… However, 90% of the animations we worked so hard to put in weren’t even being used and that is just a shame! Well, that changes now! We’ll now add in additional touch controls for the first time to handle user input and have the dragon fly all over the screen and picking a new animation based on the direction and terrorizing the country with your own flying dragon.
Source code after the break!
Continue reading ‘Cocos2d Sprite Tutorial Part 2′
By
Walter Reid | Published on
September 3, 2010 in
Beginner, Cocos2d and Getting Started.
Tags: Build, class, Cocos, cocos2d, code, Download, Example, game, iPad, iphone, Mac OS, objective-c, OpenGL, programming, sample, source, sprites, template, tutorial, vector, view, wiki.
Cocos2D for iPhone is a great open source framework that makes it easy to make some very impressive 2d games with much less effort than having to know OpenGL directly or rely on a third party system that might have performance issues or be unnecessarily bloated. From the official cocos2d for iphone website:
Cocos2D for iPhone is a framework for building 2D games, demos, and other graphical/interactive applications. It is based on the cocos2d design: it uses the same concepts, but instead of using python it uses Objective-C.”
Many of the most complex features are done for you, but like any open source software you can make changes as required. I however, doubt you will need to do many modifications on your own given that it’s very easy to subclass and handle drawing yourself as you become more experienced. Using Cocos2d is really one of the best ways to get your feet wet with OpenGL programming and learning Objective-C. HOWEVER, it is a programming language and that means you will need to understand the fundamental concepts of programming.
Continue reading ‘Getting Started with Cocos2d’
By
Walter Reid | Published on
September 2, 2010 in
Beginner and Tutorials.
Tags: Boo, Build, Builder, class, Cocos, cocos2d, code, developer, Development, documentation, editor, engine, Example, framework, game, iphone, Mac OS, objective-c, performance, Platforms, programmer, sample, Script, Scripting, source, source code, sprites, Torque, tutorial, Unity, Unity Cons, Unity Pro, Unity Pros, view, XCode.
So you want to build a game and don’t know where to start. This is a very common issue that EVERYONE experiences when they start. The answer is: “It depends.” Seriously, don’t go away, let me explain…
Torque vs Unity
Unity vs Cocos2d
Everyone has an opinion and all the frameworks have their plusses and minuses. Continue reading ‘iPhone Game Development – Getting Started’
Recent Comments