com.badlogic.gdx.utils.DelayedRemovalArray Java Examples

The following examples show how to use com.badlogic.gdx.utils.DelayedRemovalArray. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Level.java    From ud406 with MIT License 6 votes vote down vote up
public Level() {
    viewport = new ExtendViewport(Constants.WORLD_SIZE, Constants.WORLD_SIZE);

    gigaGal = new GigaGal(new Vector2(50, 50), this);
    platforms = new Array<Platform>();
    enemies = new DelayedRemovalArray<Enemy>();
    bullets = new DelayedRemovalArray<Bullet>();
    explosions = new DelayedRemovalArray<Explosion>();
    powerups = new DelayedRemovalArray<Powerup>();
    exitPortal = new ExitPortal(new Vector2(200, 200));

    gameOver = false;
    victory = false;
    score = 0;


}
 
Example #2
Source File: Level.java    From ud406 with MIT License 6 votes vote down vote up
public Level() {
    viewport = new ExtendViewport(Constants.WORLD_SIZE, Constants.WORLD_SIZE);

    gigaGal = new GigaGal(new Vector2(50, 50), this);
    platforms = new Array<Platform>();
    enemies = new DelayedRemovalArray<Enemy>();
    bullets = new DelayedRemovalArray<Bullet>();
    explosions = new DelayedRemovalArray<Explosion>();
    powerups = new DelayedRemovalArray<Powerup>();
    exitPortal = new ExitPortal(new Vector2(200, 200));

    gameOver = false;
    victory = false;
    score = 0;


}
 
Example #3
Source File: Level.java    From ud406 with MIT License 6 votes vote down vote up
public Level() {
    viewport = new ExtendViewport(Constants.WORLD_SIZE, Constants.WORLD_SIZE);

    gigaGal = new GigaGal(new Vector2(50, 50), this);
    platforms = new Array<Platform>();
    enemies = new DelayedRemovalArray<Enemy>();
    bullets = new DelayedRemovalArray<Bullet>();
    explosions = new DelayedRemovalArray<Explosion>();
    powerups = new DelayedRemovalArray<Powerup>();
    exitPortal = new ExitPortal(new Vector2(200, 200));

    gameOver = false;
    victory = false;
    score = 0;


}
 
Example #4
Source File: Level.java    From ud406 with MIT License 6 votes vote down vote up
public Level() {
    viewport = new ExtendViewport(Constants.WORLD_SIZE, Constants.WORLD_SIZE);

    gigaGal = new GigaGal(new Vector2(50, 50), this);
    platforms = new Array<Platform>();
    enemies = new DelayedRemovalArray<Enemy>();
    bullets = new DelayedRemovalArray<Bullet>();
    explosions = new DelayedRemovalArray<Explosion>();
    powerups = new DelayedRemovalArray<Powerup>();
    exitPortal = new ExitPortal(new Vector2(200, 200));

    gameOver = false;
    victory = false;
    score = 0;


}
 
Example #5
Source File: Level.java    From ud406 with MIT License 6 votes vote down vote up
public Level() {
    viewport = new ExtendViewport(Constants.WORLD_SIZE, Constants.WORLD_SIZE);

    gigaGal = new GigaGal(new Vector2(50, 50), this);
    platforms = new Array<Platform>();
    enemies = new DelayedRemovalArray<Enemy>();
    bullets = new DelayedRemovalArray<Bullet>();
    explosions = new DelayedRemovalArray<Explosion>();
    powerups = new DelayedRemovalArray<Powerup>();
    exitPortal = new ExitPortal(new Vector2(200, 200));

    gameOver = false;
    victory = false;
    score = 0;


}
 
Example #6
Source File: Level.java    From ud406 with MIT License 5 votes vote down vote up
public Level(Viewport viewport) {
    this.viewport = viewport;

    gigaGal = new GigaGal(Constants.DEFAULT_SPAWN_LOCATION, this);
    platforms = new Array<Platform>();
    enemies = new DelayedRemovalArray<Enemy>();
    bullets = new DelayedRemovalArray<Bullet>();
    explosions = new DelayedRemovalArray<Explosion>();
    powerups = new DelayedRemovalArray<Powerup>();
}
 
Example #7
Source File: Level.java    From ud406 with MIT License 5 votes vote down vote up
public Level(Viewport viewport) {
    this.viewport = viewport;

    gigaGal = new GigaGal(Constants.DEFAULT_SPAWN_LOCATION, this);
    platforms = new Array<Platform>();
    enemies = new DelayedRemovalArray<Enemy>();
    bullets = new DelayedRemovalArray<Bullet>();
    explosions = new DelayedRemovalArray<Explosion>();
    powerups = new DelayedRemovalArray<Powerup>();
}
 
Example #8
Source File: Level.java    From ud406 with MIT License 5 votes vote down vote up
public Level(Viewport viewport) {
    this.viewport = viewport;

    gigaGal = new GigaGal(Constants.DEFAULT_SPAWN_LOCATION, this);
    platforms = new Array<Platform>();
    enemies = new DelayedRemovalArray<Enemy>();
    bullets = new DelayedRemovalArray<Bullet>();
    explosions = new DelayedRemovalArray<Explosion>();
    powerups = new DelayedRemovalArray<Powerup>();
}
 
Example #9
Source File: Level.java    From ud406 with MIT License 5 votes vote down vote up
public Level(Viewport viewport) {
    this.viewport = viewport;

    gigaGal = new GigaGal(Constants.DEFAULT_SPAWN_LOCATION, this);
    platforms = new Array<Platform>();
    enemies = new DelayedRemovalArray<Enemy>();
    bullets = new DelayedRemovalArray<Bullet>();
    explosions = new DelayedRemovalArray<Explosion>();
    powerups = new DelayedRemovalArray<Powerup>();
    exitPortal = new ExitPortal(Constants.EXIT_PORTAL_DEFAULT_LOCATION);
}
 
Example #10
Source File: Level.java    From ud406 with MIT License 4 votes vote down vote up
public DelayedRemovalArray<Enemy> getEnemies() {
    return enemies;
}
 
Example #11
Source File: Level.java    From ud406 with MIT License 4 votes vote down vote up
public DelayedRemovalArray<Enemy> getEnemies() {
    return enemies;
}
 
Example #12
Source File: Level.java    From ud406 with MIT License 4 votes vote down vote up
private void initializeDebugLevel() {

        gigaGal = new GigaGal(new Vector2(15, 40), this);

        platforms = new Array<Platform>();
        bullets = new DelayedRemovalArray<Bullet>();
        enemies = new DelayedRemovalArray<Enemy>();

        // TODO: Initialize explosions collection


        platforms.add(new Platform(15, 100, 30, 20));

        Platform enemyPlatform = new Platform(75, 90, 100, 65);

        enemies.add(new Enemy(enemyPlatform));

        platforms.add(enemyPlatform);
        platforms.add(new Platform(35, 55, 50, 20));
        platforms.add(new Platform(10, 20, 20, 9));

    }
 
Example #13
Source File: Level.java    From ud406 with MIT License 4 votes vote down vote up
public DelayedRemovalArray<Powerup> getPowerups() {
    return powerups;
}
 
Example #14
Source File: Level.java    From ud406 with MIT License 4 votes vote down vote up
public DelayedRemovalArray<Powerup> getPowerups() {
    return powerups;
}
 
Example #15
Source File: Level.java    From ud406 with MIT License 4 votes vote down vote up
public DelayedRemovalArray<Enemy> getEnemies() {
    return enemies;
}
 
Example #16
Source File: Level.java    From ud406 with MIT License 4 votes vote down vote up
public DelayedRemovalArray<Enemy> getEnemies() {
    return enemies;
}
 
Example #17
Source File: Level.java    From ud406 with MIT License 4 votes vote down vote up
private void initializeDebugLevel() {

        gigaGal = new GigaGal(new Vector2(15, 40), this);

        exitPortal = new ExitPortal(new Vector2(150, 150));

        platforms = new Array<Platform>();
        bullets = new DelayedRemovalArray<Bullet>();
        enemies = new DelayedRemovalArray<Enemy>();
        explosions = new DelayedRemovalArray<Explosion>();
        powerups = new DelayedRemovalArray<Powerup>();


        platforms.add(new Platform(15, 100, 30, 20));

        Platform enemyPlatform = new Platform(75, 90, 100, 65);

        enemies.add(new Enemy(enemyPlatform));

        platforms.add(enemyPlatform);
        platforms.add(new Platform(35, 55, 50, 20));
        platforms.add(new Platform(10, 20, 20, 9));

        powerups.add(new Powerup(new Vector2(20, 110)));
    }
 
Example #18
Source File: Level.java    From ud406 with MIT License 4 votes vote down vote up
public DelayedRemovalArray<Enemy> getEnemies() {
    return enemies;
}
 
Example #19
Source File: Level.java    From ud406 with MIT License 4 votes vote down vote up
private void initializeDebugLevel() {

        gigaGal = new GigaGal(new Vector2(15, 40), this);

        exitPortal = new ExitPortal(new Vector2(150, 150));

        platforms = new Array<Platform>();
        bullets = new DelayedRemovalArray<Bullet>();
        enemies = new DelayedRemovalArray<Enemy>();
        explosions = new DelayedRemovalArray<Explosion>();
        powerups = new DelayedRemovalArray<Powerup>();


        platforms.add(new Platform(15, 100, 30, 20));

        Platform enemyPlatform = new Platform(75, 90, 100, 65);

        enemies.add(new Enemy(enemyPlatform));

        platforms.add(enemyPlatform);
        platforms.add(new Platform(35, 55, 50, 20));
        platforms.add(new Platform(10, 20, 20, 9));

        powerups.add(new Powerup(new Vector2(20, 110)));
    }
 
Example #20
Source File: Level.java    From ud406 with MIT License 4 votes vote down vote up
public DelayedRemovalArray<Powerup> getPowerups() {
    return powerups;
}
 
Example #21
Source File: Level.java    From ud406 with MIT License 4 votes vote down vote up
public DelayedRemovalArray<Enemy> getEnemies() {
    return enemies;
}
 
Example #22
Source File: Level.java    From ud406 with MIT License 4 votes vote down vote up
private void initializeDebugLevel() {

        gigaGal = new GigaGal(new Vector2(15, 40), this);

        platforms = new Array<Platform>();
        bullets = new DelayedRemovalArray<Bullet>();
        enemies = new DelayedRemovalArray<Enemy>();
        explosions = new DelayedRemovalArray<Explosion>();

        // TODO: Initialize powerups array
        powerups = new DelayedRemovalArray<Powerup>();


        platforms.add(new Platform(15, 100, 30, 20));

        Platform enemyPlatform = new Platform(75, 90, 100, 65);

        enemies.add(new Enemy(enemyPlatform));

        platforms.add(enemyPlatform);
        platforms.add(new Platform(35, 55, 50, 20));
        platforms.add(new Platform(10, 20, 20, 9));

        // TODO: Add some powerups to the level
        powerups.add(new Powerup(new Vector2(20, 110)));
    }
 
Example #23
Source File: Level.java    From ud406 with MIT License 4 votes vote down vote up
private void initializeDebugLevel() {

        gigaGal = new GigaGal(new Vector2(15, 40), this);

        exitPortal = new ExitPortal(new Vector2(150, 150));

        platforms = new Array<Platform>();
        bullets = new DelayedRemovalArray<Bullet>();
        enemies = new DelayedRemovalArray<Enemy>();
        explosions = new DelayedRemovalArray<Explosion>();
        powerups = new DelayedRemovalArray<Powerup>();


        platforms.add(new Platform(15, 100, 30, 20));

        Platform enemyPlatform = new Platform(75, 90, 100, 65);

        enemies.add(new Enemy(enemyPlatform));

        platforms.add(enemyPlatform);
        platforms.add(new Platform(35, 55, 50, 20));
        platforms.add(new Platform(10, 20, 20, 9));

        powerups.add(new Powerup(new Vector2(20, 110)));
    }
 
Example #24
Source File: Level.java    From ud406 with MIT License 4 votes vote down vote up
public DelayedRemovalArray<Enemy> getEnemies() {
    return enemies;
}
 
Example #25
Source File: Level.java    From ud406 with MIT License 4 votes vote down vote up
public DelayedRemovalArray<Powerup> getPowerups() {
    return powerups;
}
 
Example #26
Source File: Level.java    From ud406 with MIT License 4 votes vote down vote up
public DelayedRemovalArray<Powerup> getPowerups() {
    return powerups;
}
 
Example #27
Source File: Level.java    From ud406 with MIT License 4 votes vote down vote up
public DelayedRemovalArray<Enemy> getEnemies() {
    return enemies;
}
 
Example #28
Source File: Level.java    From ud406 with MIT License 4 votes vote down vote up
private void initializeDebugLevel() {

        gigaGal = new GigaGal(new Vector2(15, 40), this);

        exitPortal = new ExitPortal(new Vector2(150, 150));

        platforms = new Array<Platform>();
        bullets = new DelayedRemovalArray<Bullet>();
        enemies = new DelayedRemovalArray<Enemy>();
        explosions = new DelayedRemovalArray<Explosion>();
        powerups = new DelayedRemovalArray<Powerup>();


        platforms.add(new Platform(15, 100, 30, 20));

        Platform enemyPlatform = new Platform(75, 90, 100, 65);

        enemies.add(new Enemy(enemyPlatform));

        platforms.add(enemyPlatform);
        platforms.add(new Platform(35, 55, 50, 20));
        platforms.add(new Platform(10, 20, 20, 9));

        powerups.add(new Powerup(new Vector2(20, 110)));
    }
 
Example #29
Source File: Level.java    From ud406 with MIT License 4 votes vote down vote up
public void initializeDebugLevel() {

        gigaGal = new GigaGal(new Vector2(15, 40), this);

        platforms = new Array<Platform>();
        bullets = new DelayedRemovalArray<Bullet>();
        enemies = new DelayedRemovalArray<Enemy>();
        explosions = new DelayedRemovalArray<Explosion>();
        powerups = new DelayedRemovalArray<Powerup>();


        platforms.add(new Platform(15, 100, 30, 20));

        Platform enemyPlatform = new Platform(75, 90, 100, 65);

        enemies.add(new Enemy(enemyPlatform));

        platforms.add(enemyPlatform);
        platforms.add(new Platform(35, 55, 50, 20));
        platforms.add(new Platform(10, 20, 20, 9));

        powerups.add(new Powerup(new Vector2(20, 110)));
    }
 
Example #30
Source File: Level.java    From ud406 with MIT License 4 votes vote down vote up
public DelayedRemovalArray<Enemy> getEnemies() {
    return enemies;
}