Skip to content

Commit

Permalink
fixed ricochet hitbox and projectile position
Browse files Browse the repository at this point in the history
  • Loading branch information
ThivanW committed Oct 11, 2023
1 parent ae64a9d commit ccdf375
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 @@ -113,7 +113,7 @@ public void updateTowerState() {
// NEED TO DO USER TESTING TO FIGURE OUT THE BOUNCE COUNT
new Vector2(100, owner.getEntity().getPosition().y), new Vector2(2f, 2f), 3);
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 @@ -436,7 +436,6 @@ public static Entity createRicochetTower() {
// ADD ANIMATION COMPONENTS

ricochetTower.setScale(1.5f, 1.5f);
PhysicsUtils.setScaledCollider(ricochetTower, 0.5f, 0.5f);
return ricochetTower;
}
public static Entity createHealTower() {
Expand Down

0 comments on commit ccdf375

Please sign in to comment.