feat(#8): modularizing

This commit is contained in:
Juan Sebastián Montoya 2024-09-13 21:45:59 -05:00
parent f300fe1be7
commit 32dd2ad599
11 changed files with 271 additions and 94 deletions

5
modules/constants.js Normal file
View file

@ -0,0 +1,5 @@
export const TILE_SIZE = 16;
export const GAME_WIDTH = 320;
export const GAME_HEIGHT = 240;
export const COLS = GAME_WIDTH / TILE_SIZE;
export const ROWS = GAME_HEIGHT / TILE_SIZE;