feat(#8): modularizing
This commit is contained in:
parent
f300fe1be7
commit
32dd2ad599
11 changed files with 271 additions and 94 deletions
5
modules/constants.js
Normal file
5
modules/constants.js
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue