leftstick / Vue Memory Game
Licence: mit
A tiny game written in vue. It's inspired by IgorMinar's Memory-Game
Stars: ✭ 237
Labels
vue-memory-game
A tiny game written in vue2
. It's inspired by IgorMinar's Memory-Game. You can view the online demo here.
If you are looking for
angular5
version, check it here
If you are looking for
react
version, check it here
The online demo is implemented with extra rank system involved, you can check the source code at stage-1
branch.
We choose single-file-component
pattern as the fundamental of this game. In order to use this pattern, we involved webpack with vue-loader to make it possible.
Components Tree
Components break down
-
Game
, the whole game board -
Dashboard
, the panel on the top, including "logo", "progress", "best result" -
Logo
, on the left ofDashboard
, showing the game Logo -
MatchInfo
, on the center ofDashboard
, showing the current matching information -
Score
, on the right ofDashboard
, showing the best result -
Chessboard
, on the center ofGame
, the playing area -
Card
, each card in theChessboard
-
PlayStatus
, the footer part, displaying current status of game
File Structure
vue-memory-game
├── css
│ └── main.css
├── img
│ ├── ...
│ └── zeppelin.png
├── js
│ ├── components
│ │ ├── card
│ │ │ ├── Card.vue
│ │ │ └── Chessboard.vue
│ │ ├── dashboard
│ │ │ ├── Dashboard.vue
│ │ │ ├── Logo.vue
│ │ │ ├── MatchInfo.vue
│ │ │ └── Score.vue
│ │ ├── footer
│ │ │ └── PlayStatus.vue
│ │ │
│ │ └── Game.vue
│ │
│ ├── vuex
│ │ ├── actions
│ │ │ └── index.js
│ │ ├── getters
│ │ │ └── index.js
│ │ ├── mutations
│ │ │ └── index.js
│ │ └── store
│ │ ├── index.js
│ │ └── statusEnum.js
│ │
│ └── index.js
│
├── index.html_vm
├── package.json
├── webpack.config.js
└── webpack.config.prod.js
Detail Explanation?
Want Having a try locally?
Running Environment
Recommended Editor
#cloning code
git clone https://github.com/leftstick/vue-memory-game.git
cd vue-memory-game
#install dependencies
yarn
#start debug server
yarn start
Now, view the demo at http://localhost:8080
LICENSE
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].