Skip to content

Commit

Permalink
(#122) GameRules: FreezeMovementTime → PostDeathFreezeTicks
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed Nov 18, 2024
1 parent 504abd9 commit 57e0008
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion O21.Game/Engine/GameEngine.fs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ type GameEngine = {
{ engine with
Player = { engine.Player with
Velocity = Vector.Zero
FreezeTime = GameRules.FreezeMovementTime
FreezeTime = GameRules.PostDeathFreezeTicks
Lives = Math.Max(engine.Player.Lives - 1, 0)
Oxygen = OxygenStorage.Default }
}, [| PlaySound SoundType.LifeLost; PlayAnimation AnimationType.Die |]
Expand Down
2 changes: 1 addition & 1 deletion O21.Game/Engine/GameRules.fs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ let TicksPerSecond = 10.0
let MaxPlayerVelocity = 3

[<Literal>]
let FreezeMovementTime = 6
let PostDeathFreezeTicks = 6

let ClampVelocity(Vector(x, y)): Vector =
Vector(
Expand Down

0 comments on commit 57e0008

Please sign in to comment.