Package net.itscrafted.entity

Examples of net.itscrafted.entity.Spawner


    for(int i = 0; i < 6; i++) {
      bouncers.add(new Bouncer(40 + 80 * i, 240, 80, 80));
    }
    bouncerList.put(LEVEL6_1, bouncers);
    spawners = new ArrayList<Spawner>();
    spawners.add(new Spawner(320, 240, 100, 100, 120, 1.8));
    spawnerList.put(LEVEL6_1, spawners);
   
    // foe 2
    playerList.put(LEVEL6_2, new Point(80, 240));
    goalList.put(LEVEL6_2, new Point(560, 240));
    limitList.put(LEVEL6_2, 10);
    spawners = new ArrayList<Spawner>();
    spawners.add(new Spawner(320, 50, 80, 80, 120, 1.8));
    spawners.add(new Spawner(320, 430, 80, 80, 120, 1.8));
    spawnerList.put(LEVEL6_2, spawners);
    bouncers = new ArrayList<Bouncer>();
    bouncers.add(new Bouncer(320, 50, 100, 100));
    bouncers.add(new Bouncer(320, 430, 100, 100));
    bouncers.add(new Bouncer(320, 240, 30, 30));
    bouncerList.put(LEVEL6_2, bouncers);
    holes = new ArrayList<Hole>();
    holeList.put(LEVEL6_2, holes);
   
    // foe 3
    playerList.put(LEVEL6_3, new Point(80, 240));
    goalList.put(LEVEL6_3, new Point(560, 240));
    limitList.put(LEVEL6_3, 12);
    spawners = new ArrayList<Spawner>();
    spawners.add(new Spawner(320, 240, 80, 80, 90, 2));
    spawnerList.put(LEVEL6_3, spawners);
    bouncers = new ArrayList<Bouncer>();
    bouncers.add(new Bouncer(320, 240, 100, 100));
    bouncers.add(new Bouncer(320, 160, 30, 30, 2, 0));
    bouncers.add(new Bouncer(320, 320, 30, 30, -2, 0));
    bouncers.add(new Bouncer(213, 240, 30, 30, 0, 2));
    bouncers.add(new Bouncer(416, 240, 30, 30, 0, -2));
    bouncers.add(new Bouncer(320, 120, 30, 30));
    bouncers.add(new Bouncer(320, 360, 30, 30));
    bouncerList.put(LEVEL6_3, bouncers);
   
    // foe 4
    playerList.put(LEVEL6_4, new Point(80, 240));
    goalList.put(LEVEL6_4, new Point(560, 240));
    limitList.put(LEVEL6_4, 20);
    spawners = new ArrayList<Spawner>();
    bouncers = new ArrayList<Bouncer>();
    bouncers.add(new Bouncer(320, 240, 100, 100));
    bouncerList.put(LEVEL6_4, bouncers);
    spawners.add(new Spawner(80, 80, 80, 80, 60, 2));
    spawners.add(new Spawner(80, 400, 80, 80, 60, 2));
    spawners.add(new Spawner(560, 80, 80, 80, 60, 2));
    spawners.add(new Spawner(560, 400, 80, 80, 60, 2));
    spawnerList.put(LEVEL6_4, spawners);
   
    // force 1
    playerList.put(LEVEL7_1, new Point(80, 400));
    goalList.put(LEVEL7_1, new Point(560, 80));
    limitList.put(LEVEL7_1, 14);
    descriptions = new String[1];
    descriptions[0] = "- pull down";
    levelDescriptions.put(LEVEL7_1, descriptions);
    bouncers = new ArrayList<Bouncer>();
    bouncers.add(new Bouncer(320, 240, 120, 120));
    bouncers.add(new Bouncer(220, 390, 100, 100));
    bouncers.add(new Bouncer(90, 80, 100, 100));
    bouncers.add(new Bouncer(340, 50, 100, 100));
    bouncers.add(new Bouncer(540, 380, 100, 100));
    bouncers.add(new Bouncer(500, 210, 100, 100));
    bouncers.add(new Bouncer(80, 270, 100, 100));
    bouncerList.put(LEVEL7_1, bouncers);
   
    // force 2
    playerList.put(LEVEL7_2, new Point(80, 80));
    goalList.put(LEVEL7_2, new Point(560, 400));
    limitList.put(LEVEL7_2, 20);
    descriptions = new String[2];
    descriptions[0] = "- pull down";
    descriptions[1] = "- timed: 30 sec";
    levelDescriptions.put(LEVEL7_2, descriptions);
    bouncers = new ArrayList<Bouncer>();
    for(int i = 1; i < 6; i++) {
      for(int j = 0; j < 8; j++) {
        if((i + j) % 2 == 0) continue;
        bouncers.add(new Bouncer(80 * j, 80 * i, 30, 30));
      }
    }
    bouncerList.put(LEVEL7_2, bouncers);
    holes = new ArrayList<Hole>();
    for(int i = 0; i < 3; i++) {
      holes.add(new Hole(80 + 160 * i, 400, 130, 130));
    }
    holeList.put(LEVEL7_2, holes);
   
    // force 3
    playerList.put(LEVEL7_3, new Point(80, 400));
    goalList.put(LEVEL7_3, new Point(560, 100));
    limitList.put(LEVEL7_3, 10);
    descriptions = new String[1];
    descriptions[0] = "- pull up";
    levelDescriptions.put(LEVEL7_3, descriptions);
    bouncers = new ArrayList<Bouncer>();
    for(int i = 0; i < 7; i++) {
      bouncers.add(new Bouncer(120 + 80 * i, 0, 100, 100));
    }
    bouncerList.put(LEVEL7_3, bouncers);
    holes = new ArrayList<Hole>();
    for(int i = 0; i < 7; i++) {
      holes.add(new Hole(120 + 80 * i, 140, 100, 100));
    }
    holeList.put(LEVEL7_3, holes);
   
    // force 4
    playerList.put(LEVEL7_4, new Point(80, 240));
    goalList.put(LEVEL7_4, new Point(560, 240));
    limitList.put(LEVEL7_4, 20);
    descriptions = new String[1];
    descriptions[0] = "- pull left";
    levelDescriptions.put(LEVEL7_4, descriptions);
    spawners = new ArrayList<Spawner>();
    spawners.add(new Spawner(560, 120, 100, 100, 120, 2));
    spawners.add(new Spawner(560, 360, 100, 100, 120, 2));
    spawnerList.put(LEVEL7_4, spawners);
   
  }
View Full Code Here

TOP

Related Classes of net.itscrafted.entity.Spawner

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.