diff --git a/Risiko_Classic_Spielanleitung.pdf b/Risiko_Classic_Spielanleitung.pdf new file mode 100644 index 0000000..aec4961 Binary files /dev/null and b/Risiko_Classic_Spielanleitung.pdf differ diff --git a/Spielanleitung.docx b/Spielanleitung.docx new file mode 100644 index 0000000..9400cf5 Binary files /dev/null and b/Spielanleitung.docx differ diff --git a/Spielanleitung.java b/Spielanleitung.java new file mode 100644 index 0000000..44ddba4 --- /dev/null +++ b/Spielanleitung.java @@ -0,0 +1,20 @@ +import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) + +/** + * Write a description of class Spielanleitung here. + * + * @author (your name) + * @version (a version number or a date) + */ +public class Spielanleitung extends Actor +{ + + + public void act() + { + setImage ("Spielanleitung.png"); + + } + + +} diff --git a/Spielanleitung.png b/Spielanleitung.png new file mode 100644 index 0000000..7d1671d Binary files /dev/null and b/Spielanleitung.png differ diff --git a/Spielanleitung.xcf b/Spielanleitung.xcf new file mode 100644 index 0000000..91fc521 Binary files /dev/null and b/Spielanleitung.xcf differ diff --git a/Start_Load.java b/Start_Load.java index 88cb64f..54ecf20 100644 --- a/Start_Load.java +++ b/Start_Load.java @@ -4,7 +4,7 @@ import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) * Beginnt neues Spiel/ lädt altes Spiel. * * @author 4ngelica - * @version 1.0 + * @version 04.07.16 */ public class Start_Load extends World implements ButtonEvent { @@ -13,7 +13,8 @@ public class Start_Load extends World implements ButtonEvent // Dark Theme: "backgroundDark.png" Button chulien = new Button("Neues Spiel", 16 , this); - + Button spielanleitung = new Button("Spielanleitung", 16, this); + Button zurück = new Button("zurück", 16, this); /** * Constructor for objects of class Start_Load. * @@ -24,17 +25,32 @@ public class Start_Load extends World implements ButtonEvent super(1600, 900, 1); setBackground(backgroundImage); chulien.setSize(100,50); - addObject (chulien, (1600-chulien.getWidth())/2, (900-chulien.getHeight())/2); + spielanleitung.setSize(100,50); + zurück.setSize(100,50); + addObject (chulien, (1600-chulien.getWidth())/2+100, (900-chulien.getHeight())/2); + addObject (spielanleitung, (1600-spielanleitung.getWidth())/2+100, (900-spielanleitung.getHeight())/2 + 80); + } public void buttonClicked ( Button b) { - if ( b == chulien) { World chean = new Colours (1600, 900, 1); Greenfoot.setWorld(chean); } + + if (b == spielanleitung) + { + addObject (new Spielanleitung(), 800, 410); + addObject (zurück, 800 , 870); + } + + if (b == zurück) + { + removeObjects(getObjects(Spielanleitung.class)); + removeObject(zurück); + } }