From 90018ac034ba5cab247479750f71f1e479ef9069 Mon Sep 17 00:00:00 2001 From: Ivan Filipenkov Date: Fri, 18 Aug 2023 20:13:54 +0300 Subject: [PATCH] fix smoke --- .../GameCore/GameObjects/LivingEntities/Player/Player.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/DangerousD/GameCore/GameObjects/LivingEntities/Player/Player.cs b/DangerousD/GameCore/GameObjects/LivingEntities/Player/Player.cs index d15c969..56025c5 100644 --- a/DangerousD/GameCore/GameObjects/LivingEntities/Player/Player.cs +++ b/DangerousD/GameCore/GameObjects/LivingEntities/Player/Player.cs @@ -197,14 +197,14 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities StartCicycleAnimation("playerShootRight"); Bullet bullet = new Bullet(new Vector2(Pos.X + 16, Pos.Y)); bullet.ShootRight(); - SmokeAfterShoot smokeAfterShoot = new SmokeAfterShoot(new Vector2(Pos.X + 12, Pos.Y)); + SmokeAfterShoot smokeAfterShoot = new SmokeAfterShoot(new Vector2(Pos.X + 30, Pos.Y + 7)); } else { StartCicycleAnimation("playerShootBoomUpRight"); Bullet bullet = new Bullet(new Vector2(Pos.X + 16, Pos.Y)); bullet.ShootUpRight(); - SmokeAfterShoot smokeAfterShoot = new SmokeAfterShoot(new Vector2(Pos.X + 12, Pos.Y)); + SmokeAfterShoot smokeAfterShoot = new SmokeAfterShoot(new Vector2(Pos.X + 12, Pos.Y - 8)); } } else if(!isRight) @@ -214,14 +214,14 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities StartCicycleAnimation("playerShootBoomUpLeft"); Bullet bullet = new Bullet(new Vector2(Pos.X, Pos.Y)); bullet.ShootLeft(); - SmokeAfterShoot smokeAfterShoot = new SmokeAfterShoot(new Vector2(Pos.X - 12, Pos.Y)); + SmokeAfterShoot smokeAfterShoot = new SmokeAfterShoot(new Vector2(Pos.X - 12, Pos.Y + 7)); } else { StartCicycleAnimation("playerShootBoomUpLeft"); Bullet bullet = new Bullet(new Vector2(Pos.X, Pos.Y)); bullet.ShootUpLeft(); - SmokeAfterShoot smokeAfterShoot = new SmokeAfterShoot(new Vector2(Pos.X - 6, Pos.Y)); + SmokeAfterShoot smokeAfterShoot = new SmokeAfterShoot(new Vector2(Pos.X - 6, Pos.Y - 7)); } } }