Random enemy placement on a 2d grid
Posted
by
Robb
on Game Development
See other posts from Game Development
or by Robb
Published on 2011-01-11T04:28:25Z
Indexed on
2011/01/11
5:59 UTC
Read the original article
Hit count: 240
I want to place my items and enemies randomly (or as randomly as possible). At the moment I use XNA's Random
class to generate a number between 800 for X and 600 for Y. It feels like enemies spawn more towards the top of the map than in the middle or bottom. I do not seed the generator, maybe that is something to consider.
Are there other techniques described that can improve random enemy placement on a 2d grid?
© Game Development or respective owner