From 57e0008f1ae7fc80f5cec4e76c976b2b9d082bba Mon Sep 17 00:00:00 2001 From: Friedrich von Never Date: Mon, 18 Nov 2024 23:31:58 +0100 Subject: [PATCH] =?UTF-8?q?(#122)=20GameRules:=20FreezeMovementTime=20?= =?UTF-8?q?=E2=86=92=20PostDeathFreezeTicks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- O21.Game/Engine/GameEngine.fs | 2 +- O21.Game/Engine/GameRules.fs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/O21.Game/Engine/GameEngine.fs b/O21.Game/Engine/GameEngine.fs index b33f25a..29fd3ca 100644 --- a/O21.Game/Engine/GameEngine.fs +++ b/O21.Game/Engine/GameEngine.fs @@ -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 |] diff --git a/O21.Game/Engine/GameRules.fs b/O21.Game/Engine/GameRules.fs index 213494b..73d6435 100644 --- a/O21.Game/Engine/GameRules.fs +++ b/O21.Game/Engine/GameRules.fs @@ -35,7 +35,7 @@ let TicksPerSecond = 10.0 let MaxPlayerVelocity = 3 [] -let FreezeMovementTime = 6 +let PostDeathFreezeTicks = 6 let ClampVelocity(Vector(x, y)): Vector = Vector(