allow player to have a different width/height that is not a perfect square, (now we have Constants.playerWidth and Constants.playerHeight, having deleted the previous size in Constants.playerSize)

This commit is contained in:
2025-02-18 12:31:22 +00:00
parent e62493ce56
commit d3200745d0
7 changed files with 270 additions and 88 deletions

View File

@@ -6,10 +6,13 @@ struct
val worldHeightReal: Real32.real = 1080.0
(* constants for player *)
val playerSize = 32
val playerSizeReal: Real32.real = 32.0
val halfPlayerSize = 16
val halfPlayerSizeReal: Real32.real = 16.0
val playerWidth = 32
val playerHeight = 40
val playerWidthReal: Real32.real = 32.0
val playerHeightReal: Real32.real = 40.0
val halfPlayerWidthReal: Real32.real = 16.0
val halfPlayerHeightReal: Real32.real = 20.0
val movePlayerBy = 5
(* player timing values *)