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-JavaFX/Start_Load.java

37 lines
719 B
Java

9 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
9 years ago
{
Button start = new Button ("new game", 16, this);
9 years ago
/**
* Constructor for objects of class Start_Load.
*
*/
public Start_Load()
{
super(1600, 900, 1);
addObject (start, 800, 450);
9 years ago
}
public void buttonClicked (Button b)
9 years ago
{
if (Greenfoot.mouseClicked(this))
{
Greenfoot.setWorld(new Colours());
}
9 years ago
}
public void Load() //hat noch keine Funktion
9 years ago
{
}
}