That is it up now cheers


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | import greenfoot.*; public class Main_World extends World { static Player player; static Lives lives; public Main_World() { super ( 960 , 640 , 1 ); player = new Player(); lives = new Lives(); startOver(); } public Main_World( int w, int h, int c) { this (w, h, c, true ); } public Main_World( int w, int h, int c, boolean b) { super (w, h, c, b); setFields(); } public static void startOver() { Greenfoot.setWorld( new A1()); } public void setFields(){} public void nextLevel(){} public void resetLevel(){} } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | import greenfoot.*; public class A1 extends Main_World { public A1() { super ( 960 , 640 , 1 ); prepare(); addObject(Main_World.player, 120 , 120 ); addObject(Main_World.lives, 89 , 40 ); } public void nextLevel() { Greenfoot.setWorld( new A2()); } private void prepare() { Enemy enemy = new Enemy(); addObject(enemy, 406 , 198 ); Earth_Boss earth_boss = new Earth_Boss(); addObject(earth_boss, 575 , 420 ); Mana mana = new Mana(); addObject(mana, 106 , 95 ); mana.setLocation( 89 , 65 ); Water_Artefact water_artefact = new Water_Artefact(); addObject(water_artefact, 190 , 375 ); Mana_Powerup mana_powerup = new Mana_Powerup(); addObject(mana_powerup, 224 , 195 ); removeObject(mana_powerup); Earth_Artefact earth_artefact = new Earth_Artefact(); addObject(earth_artefact, 175 , 449 ); Fire_Artefact fire_artefact = new Fire_Artefact(); addObject(fire_artefact, 180 , 548 ); Health health = new Health(); addObject(health, 231 , 308 ); Mana_Potion mana_potion = new Mana_Potion(); addObject(mana_potion, 226 , 244 ); } } |