7879808182838485868788
starterLevel.addActor(link); starterLevel.camera.setActor(link); GlobalVariables.player = link; // Shield Shield shield = new Shield(); starterLevel.addActor(shield); Sign sign = new Sign() {{ position.setX(355); position.setY(405);
2425262728293031323334
switch (type) { case BOMB: powerup = new Bomb(1000, new Random().nextInt(SCREEN_HEIGHT - ITEM_HEIGHT), -100f); break; case SHIELD: powerup = new Shield(1000, new Random().nextInt(SCREEN_HEIGHT - ITEM_HEIGHT), -100f); break; } return powerup; }