multiply defeatedSize by ratio to ensure that pellets change size along with other objects when window is resized

This commit is contained in:
2025-01-07 13:03:17 +00:00
parent f54fa1bf02
commit c080398dd5

View File

@@ -279,7 +279,7 @@ struct
(* defeated enemy constants *)
val defeatedPi = Real32.Math.pi / 180.0
val defeatedSize = 7.0
val defeatedSize = 9.0
val defeatedDistance = 13.0
(* timing variables; always start at 0,
@@ -779,6 +779,8 @@ struct
val pelletY = ((Real32.Math.sin angle) * defeatedDistance) + playerY
val pelletY = pelletY * ratio + yOffset
val defeatedSize = defeatedSize * ratio
val vec = Field.lerp
( pelletX
, pelletY