So yeah basically i got this question.
Lets say we make our world false as in:
And in that world we spawn something like this:
Does it still spawn my objects in range from 0 to 900, or does it go out of boarder because the world is false?
1 2 3 4 5 | public GameWorld1() { super ( 900 , 600 , 1 , false ); prepare(); } |
1 2 | if (Greenfoot.getRandomNumber ( 8000 ) == 1 ) getWorld().addObject( new DmgUp(), Greenfoot.getRandomNumber(getWorld().getWidth()), 0 ); |