You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zweiundvierzig/Start_Load.java

37 lines
719 B
Java

8 years ago
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Beginnt neues Spiel/ lädt altes Spiel.
*
* @author 4ngelica
* @version 1.0
*/
public class Start_Load extends World implements ButtonEvent
8 years ago
{
Button start = new Button ("new game", 16, this);
8 years ago
/**
* Constructor for objects of class Start_Load.
*
*/
public Start_Load()
{
super(1600, 900, 1);
addObject (start, 800, 450);
8 years ago
}
public void buttonClicked (Button b)
8 years ago
{
if (Greenfoot.mouseClicked(this))
{
Greenfoot.setWorld(new Colours());
}
8 years ago
}
public void Load() //hat noch keine Funktion
8 years ago
{
}
}