Start und Game Over Bildschirm

This commit is contained in:
2026-09-15 12:19:02 +02:00
parent c188985e02
commit d35e3a62de
35 changed files with 1960 additions and 20 deletions
+21
View File
@@ -0,0 +1,21 @@
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class Button here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Button extends Actor
{
/**
* Act - do whatever the Button wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
if (Greenfoot.mousePressed(this)){
Greenfoot.setWorld(new MyWorld());
}
}
}