package uk.co.alynn.games.ld30;

public abstract class WaveData {
    public static Wave getWave(int wave) {
        switch (wave) {
        case 1:
            return new Wave() {

                @Override
                protected boolean tick(int tick) {
                    switch (tick) {
                    case 2:
                        spawnAsteroid(-5, 70, -30);
                        break;
                    case 4:
                        spawnAsteroid(105, 20, 150);
                        break;
                    case 5:
                        spawnInvader(50, 105, 2);
                        break;
                    }
                    return tick >= 5;
                }
                
            };
        default:
            return new Wave() {
                @Override
                protected boolean tick(int tick) {
                    switch (tick) {
                    case 2:
                        spawnDestroyer(50, -5);
                        break;
                    }
                    return tick >= 2;
                }
            };
        }
    }
}

@@ -722,32 +722,970 @@
 %0A            %7D;%0A
+        case 2:%0A            return new Wave() %7B%0A                %0A                @Override%0A                protected boolean tick(int tick) %7B%0A                    switch (tick) %7B%0A                    case 2:%0A                        spawnAsteroid(-5, 60, 10);%0A                        break;%0A                    case 3:%0A                        spawnAsteroid(-5, 10, 50);%0A                        spawnAsteroid(105, 70, 160);%0A                        break;%0A                    case 5:%0A                        spawnAsteroid(105, 10, 135);%0A                        spawnAsteroid(105, 100, 210);%0A                        break;%0A                    case 8:%0A                        spawnInvader(25, 105, 1);%0A                        spawnInvader(75, 105, 0);%0A                        spawnAsteroid(-5, 70, -20);%0A                        break;%0A                    %7D%0A                    return tick %3E= 8;%0A                %7D%0A                %0A            %7D;%0A
         default:

Add wave 2