mirror of
https://github.com/Binaryify/vue-tetris.git
synced 2026-01-21 05:57:57 +08:00
update README-EN.MD
This commit is contained in:
@@ -16,12 +16,12 @@ Not only refers to the screen adaptation, `but the change of input depending on
|
||||
|
||||
### Data persistence
|
||||
|
||||
[video](https://www.youtube.com/edit?o=U&video_id=SzTNX7rg9Qg)
|
||||
[video](https://www.youtube.com/watch?v=SzTNX7rg9Qg)
|
||||
|
||||
What's the worst can happen when you're playing stand-alone games? Power outage. The state is stored in the `localStorage` by subscribing to `store.subscribe`, which records exactly all the state. Web page refreshes, the program crashes, the phone is dead, just re-open the connection and you can continue playing.
|
||||
|
||||
### Vuex state preview ([Vue DevTools extension](https://github.com/vuejs/vue-devtools))
|
||||
[video](https://www.youtube.com/edit?o=U&video_id=iuoSSTqSAUE)
|
||||
[video](https://www.youtube.com/watch?v=iuoSSTqSAUE)
|
||||
|
||||
Vuex manages all the state that should be stored, which is a guarantee to be persisted as mentioned above.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user