From f9f56e3b38c1b944ef6a62a1ed81077201e540b6 Mon Sep 17 00:00:00 2001 From: Humza Shahid Date: Thu, 9 Jan 2025 15:00:56 +0000 Subject: [PATCH] make sure projectiles are shot from the same x/y coordinates they are spinning at from the player --- fcore/player.sml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fcore/player.sml b/fcore/player.sml index a096a15..d06872e 100644 --- a/fcore/player.sml +++ b/fcore/player.sml @@ -535,8 +535,8 @@ struct val {angle} = Vector.sub (defeteadEnemies, pos) val angle = degreesToRadians angle - val pelletX = ((Real32.Math.cos angle) * defeatedDistance) + x - val pelletY = ((Real32.Math.sin angle) * defeatedDistance) + y + val x = ((Real32.Math.cos angle) * defeatedDistance) + x + val y = ((Real32.Math.sin angle) * defeatedDistance) + y val x = Real32.toInt IEEEReal.TO_NEAREST x val y = Real32.toInt IEEEReal.TO_NEAREST y