This is an 'idea' in page 55 of the textbook - 'making new worms pop up when one is eaten'. Can't figure out ... how and where I should use getWorld()?


World world = getWorld(); int worldWidth = world.getWidth(); int worldHeight = world.getHeight();
int worldWidth = getWorld().getWidth(); int worldHeight = getWorld().getHeight();