Tagged Questions
2
votes
2answers
1k views
How do I randomly generate a top-down 2D level with separate sections and is infinite?
I've read many other questions/answers about random level generation but most of them deal with either randomly/proceduraly generating 2D levels viewed from the side or 3D levels. What I'm trying to ...
1
vote
2answers
302 views
How to randomly create stars in the background?
My player flies around the screen in any direction he wants, and the camera follows him. There are stars in the background. I can't figure out how to randomly generate the stars. I made a star ...
2
votes
6answers
839 views
Random Position between ranges
Does anyone have a good algorithm for generating a random y position for spawning a block, which takes into account a minimum and maximum height, allowing player to to jump on the block.
Blocks will ...
7
votes
3answers
3k views
Random enemy placement on a 2d grid
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 ...