Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A tiny game written in vue. It's inspired by IgorMinar's Memory-Game

License

NotificationsYou must be signed in to change notification settings

qhdz888/vue-memory-game

 
 

Repository files navigation

A tiny game written invue2. It's inspired by IgorMinar'sMemory-Game. You can view the online demohere.

If you are looking forangular2 version, check ithere

The online demo is implemented with extra rank system involved, you can check the source code atstage-1 branch.

We choosesingle-file-component pattern as the fundamental of this game. In order to use this pattern, we involvedwebpack withvue-loader to make it possible.

Components Tree

Components break down

  1. Game, the whole game board
  2. Dashboard, the panel on the top, including "logo", "progress", "best result"
  3. Logo, on the left ofDashboard, showing the game Logo
  4. MatchInfo, on the center ofDashboard, showing the current matching information
  5. Score, on the right ofDashboard, showing the best result
  6. Chessboard, on the center ofGame, the playing area
  7. Card, each card in theChessboard
  8. 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?

#cloning codegit clone https://github.com/leftstick/vue-memory-game.gitcd vue-memory-game#install dependenciesnpm install#start debug servernpm start

Now, view the demo athttp://localhost:8080

LICENSE

MIT License

About

A tiny game written in vue. It's inspired by IgorMinar's Memory-Game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue60.0%
  • JavaScript38.8%
  • CSS1.2%

[8]ページ先頭

©2009-2025 Movatter.jp