import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class MyWorld here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class MyWorld extends World
{
/**
* Constructor for objects of class MyWorld.
*
*/
public MyWorld()
{
// Create a new world with 600x400 cells with a cell size of 1x1 pixels.
super(700, 700, 1);
prepare();
}
/**
* Prepare the world for the start of the program.
* That is: create the initial objects and add them to the world.
*/
private void prepare()
{
Teddy teddy = new Teddy();
addObject(teddy,201,288);
Teddy teddy2 = new Teddy();
addObject(teddy2,559,183);
Teddy teddy3 = new Teddy();
addObject(teddy3,587,500);
Teddy teddy4 = new Teddy();
addObject(teddy4,170,596);
Pinball pinball = new Pinball();
addObject(pinball,373,354);
}
}
