Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am planing to create a 2D RTS game on iPhone using cocos2d, besides the tile map, any other suggestion for storing the map details for the game?

Would be nice if a GUI editor is also provided.

share|improve this question

A good idea is to build a map editor into the game, invoked with a hotkey when the game is paused in debug builds. It allows you to quickly edit the map during development gameplay and will save you masses of time.

And it might grow into an extra feature of the game if you polish it enough later for end users.

share|improve this answer

While a dedicated map editor is great to have, it's also quite time consuming to make. The #1 easy shortcut is to define your map format as a subset of a bitmap image format and use a bitmap editor to make the maps. How well this works depend greatly on the requirements for the map, it's easy if the number of different options for each tile fit into a small palette, if not you may have to use multiple pixels for each tile, which complicate the matter and make the solution less optimal.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.