By
Ameesh Kapoor | Published on
June 29, 2011 in
Cocos2d, Intermediate, RPG and Tutorials.
Tags: class, cocos2d, Development, Download, framework, game, iphone, map, mapeditor, programming, source, source code, tile, tiles, tutorial, Tutorials, update.
Update: Made some modifications to the source code – changed the title music (Hope you enjoy a remix of Dragon Warrior) and expanded the map to give a better idea of how you can use the space. Also, I added grid lines to the tiles so it didn’t looks so much like a painting. More parts to come!
It’s been a while since part 1 – we know from your comments that it’s not your favorite thing in the world (it’s not ours either) but we’re gonna try to get going again!
That being said, if you haven’t read part 1 of the tutorial, or the intro describing what we’re working towards, now’s your chance to play catch-up before plunging forward into the next piece of unknown – tile based maps using Tiled!
As will be the case for the rest of the tutorial, we’re using the Cocos2D framework for game development, which already includes support for the TMX file format (we’ll get to that later – just know that it makes our lives easier!). To build the map, we’re going to be using Tiled Qt, a fantastic piece of software that makes creating maps a piece of cake!
Source code after the break!
Continue reading ‘RPG Style Game for the iPhone – Part 2: Tiled Maps’
Role playing games are a hugely popular genre of game – some of our favorite games over the years have been RPG’s. One of the projects we’ve been working on lately is an RPG style game. It’s been a challenging task, so we thought we should share some of the information on how we put it together! RPG’s can be a complex genre with lots of different game design mechanics, so let’s go ahead and spell out what we’re trying to build here:
- A Menu system, including both an Options and Credits screen, that will build from our previous Menu tutorials
- How to build a top down, tile based map using Tiled, a free tool for creating tiled based maps!
- RPG’s almost always tell a story, and in our case we have some videos to help move the story along. We’ll show how to play an intro video to set things up, as well as a video before starting a mission.
- Generally, your character(s) have missions to go through with mission objectives and win/lose conditions. We’ll show you how to display these to your player before they start the mission, and later on show how to build these into the game.
- Our game is going to have multiple playable characters so we’ll have a character select screen. We’ll start with something simple and later on add in more complexity.
- Dialog is another important aspect so we’ll show some character dialog at the start of our missions.
That’s probably enough to get us started on the road to a working game for now. Let’s talk briefly about role playing games – they have been around for a looong time, before digital games even existed. While there are definitely others, Dungeons & Dragons was probably the most popular pen and paper role playing game. RPG’s have come a long way since then and have transcended all consoles and are still popular to this day in a variety of forms, including MMORPG’s and so on. Hopefully with our help, you all will be able to keep the trend going and create some awesome games for the iPhone! The tutorials will start coming soon so stay posted!
Recent Comments