How do i skip an special area by using random?
in
Programming Questions
•
1 year ago
Hi @ all,
first i add some items around the canvas to the ArrayList with random X and random Y:
- enemies.add(new cEnemies(random(width), random(0,500), 35, eL, eLbL));
But now i would like to add the items only around a rectangle in the middle of my canvas. So every where on the canvas items should by add, but the rectangle shouldn't contain items.
How can i realize that?
Thanks and good night.
1