I would like to know if there is a formula to calculate how much distance should I leave between enemies, or how many to put on the screen at the same time in a side-scroller game.

I feel like if I leave too few the game is going to get boring, but if I leave too many at some spot the game is going to get way too hard.


closed as not a real question by Josh, MichaelHouse, doppelgreener, John McDonald, Trevor Powell Sep 20 '12 at 5:18

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 5
    \$\begingroup\$ Your question is too vague. The density of enemies in an area is completely dependent on the type of game you're trying to make. For example, Super Mario Bros compared to Metroid compared to Ghosts 'n Goblins compared to Double Dragon, etc. It's all about what kind of difficulty you're trying to achieve, tweak the amount of enemies, or their difficulty, until you feel that your game has a balanced feel. \$\endgroup\$ – Nic Foster Feb 8 '12 at 6:47

No. There is no such generic formula.

My experience in the professional game industry has been that tuning game elements (such as the density and placement of enemies) usually constitutes about 80 to 90 percent of the total work required to create a fun game. Most people would probably agree that it is also the most difficult part of the process to get right, and the most important to the final feel and success of the game.

Honestly, this is something that you shouldn't even want to delegate to the computer to do for you; too much rides on the decisions that are made in this area to ever trust them to a generic algorithm.


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