Skip to content

Commit

Permalink
Resized Xenos and flipped direction of fireball projectiles
Browse files Browse the repository at this point in the history
  • Loading branch information
meganroxburgh committed Sep 6, 2023
1 parent b14693b commit ffe3456
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ private void spawnXenoGrunts() {
GridPoint2 randomPos = RandomUtils.random(maxPos, minPos);
System.out.println(randomPos);
Entity xenoGrunt = NPCFactory.createXenoGrunt(player);
xenoGrunt.setScale(1.5f, 1.5f);
spawnEntityAt(xenoGrunt, randomPos, true, true);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ public void updateMobState() {
owner.getEntity().getEvents().trigger(FIRING);
Entity newProjectile = ProjectileFactory.createFireBall(owner.getEntity(), new Vector2(0, owner.getEntity().getPosition().y), new Vector2(2f,2f));
newProjectile.setPosition((float) (owner.getEntity().getPosition().x - 0.75), (float) (owner.getEntity().getPosition().y));
newProjectile.setScale(-1f, 0.5f);
ServiceLocator.getEntityService().register(newProjectile);
mobState = STATE.STOW;
owner.getEntity().getEvents().trigger("shootStart");
Expand Down

0 comments on commit ffe3456

Please sign in to comment.