Package com.riley.angrymasons.Model

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


  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

TOP

Related Classes of com.riley.angrymasons.Model.Bullet

Copyright © 2018 www.massapicom. 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.