For creating multiple boulders in my game, I’ve been doing this -
b1 = new Boulder(this);
b2 = new Boulder(this);
b3 = new Boulder(this);
etc...
This just doesn’t seem practical for games that have 10, 20, or even 50 things on the screen at once. Is there a sure-fire way to do this? I guess an example I have would be mobs in minecraft, I bet that for spawning new zombies and stuff it doesn’t do what I have been doing.
Thanks,
-Nate