i think it works now
parent
0652f56d9e
commit
ed490d5cfc
|
|
@ -1 +0,0 @@
|
||||||
/MAndApps/
|
|
||||||
|
|
@ -81,7 +81,7 @@ public class SpaceWars implements BasicApp {
|
||||||
log("You gained " + enemies.elementAt(i).getWorth() + " exp.");
|
log("You gained " + enemies.elementAt(i).getWorth() + " exp.");
|
||||||
addEXP(enemies.elementAt(i).getWorth());
|
addEXP(enemies.elementAt(i).getWorth());
|
||||||
|
|
||||||
//enemies.remove(i);
|
// enemies.remove(i);
|
||||||
|
|
||||||
} else
|
} else
|
||||||
i++;
|
i++;
|
||||||
|
|
@ -280,7 +280,7 @@ public class SpaceWars implements BasicApp {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static int getMaxXPForLvl(int lvl) {
|
private static int getMaxXPForLvl(int lvl) {
|
||||||
return (int)(Math.pow(lvl, 1.618));
|
return (int) (Math.pow(lvl, 1.618));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addEXP(int i) {
|
public void addEXP(int i) {
|
||||||
|
|
@ -340,5 +340,7 @@ public class SpaceWars implements BasicApp {
|
||||||
public void click() {
|
public void click() {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
|
BOOM(75, 1.2, 100, 100, 100, 50, Engine.mouseX, Engine.mouseY, 550, true, true, 10);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import MAndEngine.Engine;
|
||||||
public class Main {
|
public class Main {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
|
||||||
Engine engine = new Engine(new String[] {"MAndApps.apps.SpaceWars"}, false);
|
Engine engine = new Engine(new String[] {"MAndApps.apps.spacewars.SpaceWars"}, false);
|
||||||
engine.run();
|
engine.run();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue