Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
samsully committed Sep 10, 2023
1 parent b4ebcc1 commit bdbb628
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ public void updateMobState() {
owner.getEntity().getEvents().trigger(STOW);
mobState = STATE.STOW;
} else {
if (this.meleeOrProjectile() instanceof Melee) {

}
Entity newProjectile = ProjectileFactory.createMobBall(PhysicsLayer.HUMANS, new Vector2(0, owner.getEntity().getPosition().y), new Vector2(2f,2f));
newProjectile.setPosition((float) (owner.getEntity().getPosition().x), (float) (owner.getEntity().getPosition().y));
newProjectile.setScale(-1f, 0.5f);
Expand Down Expand Up @@ -227,4 +230,9 @@ private Weapon meleeOrProjectile() {

return chosenWeapon;
}

private void setTarget() {
Vector2 newVector = new Vector2(owner.getEntity().getPosition().x - 10f, owner.getEntity().getPosition().y - 2f);
Fixture hitraycast = physics.raycastGetHit(owner.getEntity().getPosition(), newVector, TARGET);
}
}

0 comments on commit bdbb628

Please sign in to comment.