Examples of Bullet


Examples of com.ackgaming.entity.Bullet

            t.draw();
        }
      }
     
      for(int i=0; i<bullets.size(); i++) {
        Bullet b = (Bullet) bullets.get(i);
          b.draw();
      }
     
      for(int i=0; i<blocks.size(); i++) {
        if(blocks.get(i) instanceof BasicBlock) {
          BasicBlock b = (BasicBlock) blocks.get(i);
            b.draw();
        } else if(blocks.get(i) instanceof SecondBlock) {
          SecondBlock b = (SecondBlock) blocks.get(i);
          b.draw();
        } else if(blocks.get(i) instanceof ThirdBlock) {
          ThirdBlock b = (ThirdBlock) blocks.get(i);
        b.draw();
        } else if(blocks.get(i) instanceof BonusLifeBlock) {
          BonusLifeBlock b = (BonusLifeBlock) blocks.get(i);
        b.draw();
        }
      }
    }
View Full Code Here

Examples of com.ackgaming.entity.Bullet

            t.update();
          }
        }
       
      for(int i=0; i<bullets.size(); i++) {
          Bullet b = (Bullet) bullets.get(i);
            b.update();
        }
     
      if(ball.y > paddle.y) {
        if(lives == 0) {
          sbg.enterState(BlockBreaker.LOSESCREENSTATE);
View Full Code Here

Examples of com.ackgaming.entity.Bullet

        }
      }
    }
     
      for(int i=0; i<bullets.size(); i++) {
      Bullet t = (Bullet) bullets.get(i);
     
    }
     
    }
View Full Code Here

Examples of com.palepail.TestGame.Model.Bullet.Bullet

  // ================MISC
  public void shoot(World world) {
    if (isActive()) {
      if (isShooting() && world.getCounter() % fireRate == 0) {
        world.addBullet(new Bullet(Bullet.BULLETSPEED, 0, 1 * Configuration.gameScale,
            1 * Configuration.gameScale, new Vector2((getPosition().x - (getWidth() / 1.3f))
                - ((1 * Configuration.gameScale) / 4), getPosition().y + getHeight() / 2), new Vector2(
                new Vector2(getPosition().x, getPosition().y + 90).sub(getPosition()).nor())));

        world.addBullet(new Bullet(Bullet.BULLETSPEED, 0, 1 * Configuration.gameScale,
            1 * Configuration.gameScale, new Vector2((getPosition().x - (getWidth() / 1.3f))
                + ((1 * Configuration.gameScale) / 4), getPosition().y + getHeight() / 2), new Vector2(
                new Vector2(getPosition().x, getPosition().y + 90).sub(getPosition()).nor())));
        Audio.shoot();
      }
View Full Code Here

Examples of com.palepail.TestGame.Model.Bullet.Bullet

    float originalAngle = new Vector2(ship.getPosition().tmp().sub(getPosition()).nor()).angle();

    for (float i = originalAngle - (burstSpread / 2); i <= originalAngle + (burstSpread / 2); i += (burstSpread / burstCount)) {

      float angle = i;
      Bullet bullet = getBasicBullet(ship, bulletScale);
      bullet.getVelocity().setAngle(angle);
      world.addEnemyBullet(bullet);

    }

  }
View Full Code Here

Examples of com.palepail.TestGame.Model.Bullet.Bullet

    float originalAngle = new Vector2(ship.getPosition().tmp().sub(getPosition()).nor()).angle();

    for (float i = originalAngle - (burstSpread / 2); i <= originalAngle + (burstSpread / 2); i += (burstSpread / burstCount)) {

      float angle = i;
      Bullet bullet = getBasicBullet(ship, bulletScale);
      bullet.getVelocity().setAngle(angle);
      world.addEnemyBullet(bullet);

    }

  }
View Full Code Here

Examples of com.palepail.TestGame.Model.Bullet.Bullet

    }

  }

  public void shootDouble(World world, Ship ship, float bulletScale) {
    Bullet bullet = getBasicBullet(ship, bulletScale);
    bullet.getVelocity().setAngle(this.getRotation());
    world.addEnemyBullet(bullet);

    bullet = getBasicBullet(ship, bulletScale);

    bullet.getVelocity().setAngle(-this.getRotation());
    world.addEnemyBullet(bullet);

  }
View Full Code Here

Examples of com.riley.angrymasons.Model.Bullet

  public boolean touchDown(int screenX, int screenY, int pointer, int button) {
    touch.set(screenX, screenY, 0);
    world.getRenderer().getCamera().unproject(touch);
    vec2Touch.set(touch.x, touch.y);
    ship = world.getShip();
    world.addBullet(new Bullet(Bullet.SPEED, 0, .1f, 8/20f, new Vector2(ship.getPosition().x + ship.getWidth() / 2, ship.getPosition().y + ship.getHeight() / 2), new Vector2(vec2Touch.sub(ship.getPosition()).nor())));
    AngryAudio.shoot();
    return true;
  }
View Full Code Here

Examples of com.riley.angrymasons.Model.Bullet

  public boolean touchDown(int screenX, int screenY, int pointer, int button) {
    touch.set(screenX, screenY, 0);
    world.getRenderer().getCamera().unproject(touch);
    vec2Touch.set(touch.x, touch.y);
    ship = world.getShip();
    world.addBullet(new Bullet(Bullet.SPEED, 0, .1f, 8/20f, new Vector2(ship.getPosition().x + ship.getWidth() / 2, ship.getPosition().y + ship.getHeight() / 2), new Vector2(vec2Touch.sub(ship.getPosition()).nor())));
    return true;
  }
View Full Code Here

Examples of com.tankz.systems.rendering.spatials.Bullet

    if (spatialFormFile.equalsIgnoreCase("crate")) {
      return new Crate(world, e);
    } else if (spatialFormFile.equalsIgnoreCase("mammothTank")) {
      return new MammothTank(world, e);
    } else if (spatialFormFile.equalsIgnoreCase("bullet")) {
      return new Bullet(world, e);
    } else if (spatialFormFile.equalsIgnoreCase("explosion")) {
      return new Explosion(world, e);
    } else if (spatialFormFile.equalsIgnoreCase("wall")) {
      return new Wall(world, e);
    }
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.