progress moving constant values into own module

This commit is contained in:
2025-01-12 07:18:44 +00:00
parent 49282887e3
commit a7c2e2ef01
5 changed files with 125 additions and 29 deletions

25
fcore/constants.sml Normal file
View File

@@ -0,0 +1,25 @@
structure Constants =
struct
val worldWidth = 1920
val worldHeight = 1080
(* constants for player *)
val playerSize = 35
val playerSizeReal = 35.0
val halfPlayerSize = 35 div 2
val halfPlayerSizeReal = 35.0 / 2.0
val movePlayerBy = 5
(* player timing values *)
val jumpLimit = 150
val floatLimit = 3
val recoilLimit = 15
val attackedLimit = 55
val maxCharge = 60
(* constants for projectiles *)
val projectilePi: Real32.real = Real32.Math.pi / 180.0
val projectileSize: Real32.real = 9.0
val projectileDistance: Real32.real = 13.0
val projectileSizeInt = 9
end