diff options
Diffstat (limited to 'src/engine/config/constants.ts')
-rw-r--r-- | src/engine/config/constants.ts | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/engine/config/constants.ts b/src/engine/config/constants.ts index c2cbc76..0b07108 100644 --- a/src/engine/config/constants.ts +++ b/src/engine/config/constants.ts @@ -41,10 +41,17 @@ export namespace KeyConstants { }, new Map()); } +export namespace PhysicsConstants { + export const GRID_MOVEMENT_VELOCITY = 2; +} + export namespace Miscellaneous { export const WIDTH = 800; export const HEIGHT = 800; - export const DEFAULT_GRID_WIDTH = 30; - export const DEFAULT_GRID_HEIGHT = 30; + export const GRID_ROWS = 15; + export const GRID_COLUMNS = 15; + + export const GRID_CELL_WIDTH = Math.floor(WIDTH / GRID_COLUMNS); + export const GRID_CELL_HEIGHT = Math.floor(HEIGHT / GRID_ROWS); } |