move constants to const.tsx and setup game logic

This commit is contained in:
Ole Morud
2022-08-22 16:13:08 +02:00
parent ae0191daff
commit 6bd184ac5b
2 changed files with 74 additions and 40 deletions

7
src/const.tsx Normal file
View File

@@ -0,0 +1,7 @@
export const SIDEBAR_WIDTH = 8
export const SELECTED_COLOR = "0xFF0000"
export const BOARD_WIDTH = 10
export const BOARD_HEIGHT = 10
export const TILE_SIZE = 5
export default {}