2025-01-12 07:18:44 +00:00
|
|
|
structure Constants =
|
|
|
|
|
struct
|
|
|
|
|
val worldWidth = 1920
|
|
|
|
|
val worldHeight = 1080
|
2025-01-12 11:46:32 +00:00
|
|
|
val worldWidthReal: Real32.real = 1920.0
|
|
|
|
|
val worldHeightReal: Real32.real = 1080.0
|
2025-01-12 07:18:44 +00:00
|
|
|
|
|
|
|
|
(* constants for player *)
|
|
|
|
|
val playerSize = 35
|
2025-01-12 11:46:32 +00:00
|
|
|
val playerSizeReal: Real32.real = 35.0
|
2025-01-12 07:18:44 +00:00
|
|
|
val halfPlayerSize = 35 div 2
|
2025-01-12 11:46:32 +00:00
|
|
|
val halfPlayerSizeReal: Real32.real = 35.0 / 2.0
|
2025-01-12 07:18:44 +00:00
|
|
|
val movePlayerBy = 5
|
|
|
|
|
|
|
|
|
|
(* player timing values *)
|
|
|
|
|
val jumpLimit = 150
|
|
|
|
|
val floatLimit = 3
|
|
|
|
|
val recoilLimit = 15
|
|
|
|
|
val attackedLimit = 55
|
|
|
|
|
val maxCharge = 60
|
2025-02-07 11:22:23 +00:00
|
|
|
val attackLengthLimit = 59
|
2025-01-12 07:18:44 +00:00
|
|
|
|
|
|
|
|
(* 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
|
2025-01-12 12:53:41 +00:00
|
|
|
|
|
|
|
|
(* constants for enemy *)
|
|
|
|
|
val enemySize = 35
|
|
|
|
|
val enemySizeReal: Real32.real = 35.0
|
2025-01-13 12:53:50 +00:00
|
|
|
val moveEnemyBy = 3
|
2025-02-11 23:54:13 +00:00
|
|
|
val batRestLimit = 55
|
2025-01-13 12:46:10 +00:00
|
|
|
|
2025-01-13 12:53:50 +00:00
|
|
|
val moveProjectileBy = 11
|
2025-01-12 07:18:44 +00:00
|
|
|
end
|