From a5bb07445c42af0461e3d64dcaabf977b5f58d41 Mon Sep 17 00:00:00 2001 From: 4ngelica Date: Sun, 19 Jun 2016 21:37:19 +0200 Subject: [PATCH] Start_Load --- Start_Button.java | 25 +++ Start_Load.class | Bin 0 -> 527 bytes Start_Load.ctxt | 9 ++ Start_Load.java | 33 ++++ project.greenfoot | 379 ++++++++++++++++++++++++++++++---------------- 5 files changed, 315 insertions(+), 131 deletions(-) create mode 100644 Start_Button.java create mode 100644 Start_Load.class create mode 100644 Start_Load.ctxt create mode 100644 Start_Load.java diff --git a/Start_Button.java b/Start_Button.java new file mode 100644 index 0000000..032d0c1 --- /dev/null +++ b/Start_Button.java @@ -0,0 +1,25 @@ +import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) + +/** + * Startet neues Spiel. + * + * @author 4ngelica + * @version 1.0 + */ +public class Start_Button extends Button +{ + private int textSize = 32; + private String text = "New Game"; + + /** + * Erstellt neue Klasse Colors. + */ + public void act() + { + setLocation(100,100); + if (Greenfoot.mouseClicked(this)) + { + Greenfoot.setWorld(new Colors()); + } + } +} diff --git a/Start_Load.class b/Start_Load.class new file mode 100644 index 0000000000000000000000000000000000000000..e7a2e1986a71b4aa301a2b0b860b1094cfd5e0ec GIT binary patch literal 527 zcmZWl%TB^T6g^Wa&ni$AkcZ+9S;)qn#)T#tk_HzTbY}*rSOaZR1~q<#zv6