Tech: Vue 3 + Vite + TS.
npm install
npm run dev
npm run build
Lint with ESLint
npm run lint
-
Theme reused from vue starter (fonts, partly colors, day night theme, assets from web)
-
Default start: 6x6, one random tile with 2
- Read rules before play
-
Score, animated when you get updates of your game score
-
Game state saving to local storage, so you can continue your game in any time
-
Also, if you want to continue playing on another device or share with friend, you can use
Share Game
button. Under the hood it's copy to clipboard link with data of game state in query. -
When you win game or loose it, no problem! Start new one. Futhermore you can customize your board.
-
In new game form you can customize:
Obstacles
andSize of board
.
TypeScript cannot handle type information for .vue
imports by default, so we replace the tsc
CLI with vue-tsc
for type checking. In editors, we need TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue
types.
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:
- Disable the built-in TypeScript Extension
- Run
Extensions: Show Built-in Extensions
from VSCode's command palette - Find
TypeScript and JavaScript Language Features
, right click and selectDisable (Workspace)
- Run
- Reload the VSCode window by running
Developer: Reload Window
from the command palette.