Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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

Hey guys, Whats the best practice to create games like farmville, tapzoo...Do I create a simple grid/tilemap as the background and then just have the objects (like houses and whatnot) as sprites ontop? Or can I also just use a regular image as a background and just make my sprites move on the basis of a non graphical grid? How do I go about the isometric perspective of the map? How would I increase the size of the map(for example in an mutable array i could add more locations or I could set already instantiated locations to bool:valid...)? Do I have to use a game-freindly language like cocos2d or can i just use obj-c with UIImageViews...or is very bad practice because of the amount of memory it consumes? What the best practice to create something like this?

If you can answer anyone of these questions you are friggin awesome! Thanks!

share|improve this question

closed as primarily opinion-based by Byte56 Mar 29 '15 at 5:49

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise.If this question can be reworded to fit the rules in the help center, please edit the question.

If you have custom maps in your game, and want to be able to create many different maps or have map editors, having tiles and then objects like houses on top is probably the way to go. Most older strategy games follow this approach. There are RPGs like Baldur's Gate, on the other hand, which have a big image for each map. The downside of this is that you cannot be really generic in the way you create maps - they tend to end up with a fixed number of maps.

On rendering the isometric tiles - it can get somewhat tricky, but here are some ideas.

Map tilesets, or moveable areas can be represented by many different data structures. Array is one option, quad trees trade off memory-usage for performance as they allow you to compress your map representation somewhat. Both can have variable sizes.

In any case, I recommend you first define more precisely what kind of a game you want to do, and list all the requirements and goals. Try to be able to create something rudimentary first, and optionally evolve it later.

share|improve this answer

The simple answer is: Do as you like. There are almost as many formulas for creating games as there are games.

If you want a more specific answer you got to be far more specific about what you want to create.

I guess that you are a beginner in game programming, in that case the most valuable piece of advice I can give you is keep it small and simple.

share|improve this answer

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