make sure projectiles are shot from the same x/y coordinates they are spinning at from the player

This commit is contained in:
2025-01-09 15:00:56 +00:00
parent 06bc691c7f
commit f9f56e3b38

View File

@@ -535,8 +535,8 @@ struct
val {angle} = Vector.sub (defeteadEnemies, pos) val {angle} = Vector.sub (defeteadEnemies, pos)
val angle = degreesToRadians angle val angle = degreesToRadians angle
val pelletX = ((Real32.Math.cos angle) * defeatedDistance) + x val x = ((Real32.Math.cos angle) * defeatedDistance) + x
val pelletY = ((Real32.Math.sin angle) * defeatedDistance) + y val y = ((Real32.Math.sin angle) * defeatedDistance) + y
val x = Real32.toInt IEEEReal.TO_NEAREST x val x = Real32.toInt IEEEReal.TO_NEAREST x
val y = Real32.toInt IEEEReal.TO_NEAREST y val y = Real32.toInt IEEEReal.TO_NEAREST y