42

vue 开发一款 2048 小游戏

 5 years ago
source link: https://juejin.im/post/5b273daf6fb9a00e58714670
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
github - 各位大爷赏个star。demo - 请在pc端下访问。前言写之前,我觉得如果利用好vue的双向绑定,那么就只需要操纵数组就可以玩2048了。但实际操作过程中遇到坑好多。不过基本功能已经实现,可以玩额。遇到的坑方块移动的时候,需要一个

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK