Skip to content

Commit

Permalink
Fixed pierce tower hitbox and projectile
Browse files Browse the repository at this point in the history
  • Loading branch information
ThivanW committed Oct 11, 2023
1 parent d685387 commit ae64a9d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public void updateTowerState() {
Entity newProjectile = ProjectileFactory.createPierceFireBall(PhysicsLayer.NPC,
new Vector2(100, owner.getEntity().getPosition().y), new Vector2(2f, 2f));
newProjectile.setPosition((float) (owner.getEntity().getPosition().x + 0.25),
(float) (owner.getEntity().getPosition().y + 0.25));
(float) (owner.getEntity().getPosition().y));
ServiceLocator.getEntityService().register(newProjectile);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,6 @@ public static Entity createPierceTower() {
.addComponent(aiTaskComponent);

pierceTower.setScale(1.5f, 1.5f);
PhysicsUtils.setScaledCollider(pierceTower, 0.5f, 0.5f);
return pierceTower;
}

Expand Down

0 comments on commit ae64a9d

Please sign in to comment.