By
iPhone Game Tutor | Published on
September 23, 2010 in
Cocos2d, Intermediate and Slide Image.
Tags: ccaction, CCDirector, ccmoveto, CCSpriteFrame, cocos2d, code, Download, Example, game, iphone, slide image, source code, sprites, tile based games, tiles, tutorial, Tutorials.
It’s been a week since our last tutorial and in this new tutorial, we’re going to actually tackle a game – A slider game… You know the type of game I’m talking about, the players job is to put a game that is jumbled up, back together again. The great thing about games of this type is that we can use this as our first foray into the world of tile based games.
So what do we need to create this wonderful type of game? Below are a list of steps to make your own tile based slider game:
- Create a “Tile” class that has a sprite, a position and a value
- Create a manager type class that will create all the tiles and keep track of them
- Add touch components that will allow the user to swap tile locations
- Add additional image randomizations so there is more variety in the game
That’s it… Sounds simple when written out, huh? Well, we’re going to go through it and show you that it can be simple.
Source Code after the break!
Continue reading ‘Building a Slide Image Game’
By
iPhone Game Tutor | Published on
September 14, 2010 in
Beginner, Cocos2d and Getting Started.
Tags: addChild, animate, ccaction, CCAnimate, CCDirector, ccmoveto, CCSpriteFrame, CCSpriteFrameCache, CCSpriteSheet, Example, game, information, iphone, PlayLayer, runaction, SceneManager, source, source code, sprites, spriteSheetWithTexture, spriteWithFile, stopaction, Terrain, Tutorials.
So in Part 2 we introduced an animated dragon that had 8 directions of movement and was completely controllable via touching the screen. Isn’t cocos2d awesome! Well today we’re going to do a little more, today we’re going to create some villagers – tons of them in fact. We’ll use the information we’ve gotten so far including loading sprites from a sprite sheet and setting up animations.
Source Code after the break!
Continue reading ‘Cocos2d Sprite Tutorial Part 3′
By
iPhone Game Tutor | 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
iPhone Game Tutor | 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