Commit 765f8d73 authored by patrick.gustard-sm's avatar patrick.gustard-sm

Fixed while loop

parent efeed95b
......@@ -157,14 +157,6 @@ public class Main extends Application {
}
public static void enemySetup() {
enemyshipnum=0;
}
public static void enemyPlace() {
......@@ -207,12 +199,12 @@ public class Main extends Application {
public static void startGame(){
enemySetup();
enemyshipnum=0;
While(enemyshipnum<=8)
{
Enemyplace()
}
while(enemyshipnum<=8);
{
enemyPlace();
}
setup = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment