Examples of Explosion


Examples of net.minecraft.world.Explosion

  public static void explodeBlock(World world, int x, int y, int z) {
    if (FMLCommonHandler.instance().getEffectiveSide().isClient()) {
      return;
    }

    Explosion explosion = new Explosion(world, null, x + .5, y + .5, z + .5, 3f);
    explosion.affectedBlockPositions.add(new ChunkPosition(x, y, z));
    explosion.doExplosionB(true);

    for (EntityPlayer player : (List<EntityPlayer>) world.playerEntities) {
      if (!(player instanceof EntityPlayerMP)) {
        continue;
      }
View Full Code Here

Examples of org.sfsoft.jfighter2dx.effects.Explosion

   * Actualiza el estado de las explosiones en pantalla
   * @param dt
   */
  private void updateExplosions(float dt) {
   
    Explosion explosion = null;
   
    for (int i = explosions.size - 1; i >= 0; i--) {
     
      explosion = explosions.get(i);
      explosion.update(dt);
      if (explosion.mustDie()) {
        explosions.removeIndex(i);
      }
    }
  }
View Full Code Here

Examples of org.sfsoft.jfighter2dx.effects.Explosion

    Enemy enemy = null;
   
    for (int i = enemies.size - 1; i >= 0; i--) {
      enemy = enemies.get(i);
      if (!enemy.getClass().getSimpleName().equals("Stone")) {
        Explosion explosion = new Explosion(enemy.getX(), enemy.getY());
        explosions.add(explosion);
        if (game.configurationManager.isSoundEnabled())
          ResourceManager.getSound("explosion").play();
        enemies.removeIndex(i);
       
View Full Code Here

Examples of org.sfsoft.jfighter2dx.effects.Explosion

           
            enemy.hit();
            if (enemy.getLives() == 0) {
              ship.addScore(enemy.getValue());
             
              Explosion explosion = new Explosion(enemy.getX() - Constants.ENEMY_WIDTH, enemy.getY());
              explosions.add(explosion);
              enemies.removeIndex(i);
             
              if (game.configurationManager.isSoundEnabled())
                ResourceManager.getSound("explosion").play();
            }
           
          }
          // Si se dispara contra la bala de un enemigo, el proyectil no desaparece
          // Si se dispara un misil, éste tampoco desaparece hasta que no llega al final de la pantalla,
          // aunque haya acertado a algún enemigo
          if ((!enemy.getClass().getSimpleName().equals("ShooterBullet")) &&
              (!bullet.getClass().getSimpleName().equals("Missile")))
            bullets.remove(j);
        }
      }
    }
   
    // Comprueba si la nave colisiona con algún enemigo
    if (ship.getShieldTime() <= 0) {
      for (int i = enemies.size - 1; i >= 0; i--) {
        enemy = enemies.get(i);
       
        if (enemy.getRect().overlaps(ship.getRect())) {
         
          enemy.hit();
          if (enemy.getLives() == 0) {
            ship.addScore(enemy.getValue());
           
            Explosion explosion = new Explosion(enemy.getX(), enemy.getY());
            explosions.add(explosion);
            enemies.removeIndex(i);
           
            if (game.configurationManager.isSoundEnabled())
              ResourceManager.getSound("explosion").play();
View Full Code Here

Examples of ru.vagrant_ai.questionmarkgame.obj.particle.Explosion

        break;
      case LIGHT_SOURCE_STRONG_ADD:
        particle = new LightSourceStrongAdd(x, y);
        break;
      case EXPLOSION:
        particle = new Explosion(x, y);
        break;
      case POISON_EFFECT:
        particle = new PoisonEffect(x, y);
        break;
      case POISON_CLOUD:
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.