@Override public void activate() { for (int i : Level.NEIGHBOURS9DIST2) { if (Level.insideMap(pos + i) && !Level.solid[pos + i]) { if (Level.pit[pos + i] || Level.water[pos + i]) GameScene.add(Blob.seed(pos + i, 1, Fire.class)); else GameScene.add(Blob.seed(pos + i, 5, Fire.class)); CellEmitter.get(pos + i).burst(FlameParticle.FACTORY, 5); } } Sample.INSTANCE.play(Assets.SND_BURNING); }
@Override protected void onZap(Ballistica bolt) { Blob venomGas = Blob.seed(bolt.collisionPos, 50 + 10 * level, VenomGas.class); ((VenomGas) venomGas).setStrength(level + 1); GameScene.add(venomGas); }