这个项目是一个使用不同前端框架和技术实现的2048游戏合集。每个子项目都展示了如何使用特定的框架来构建这个经典的数字滑块游戏。
Framework |
Badge |
Description |
Angular |
 |
Angular implementation |
Backbone.js |
 |
Backbone.js implementation |
Canvas |
 |
Native Canvas implementation |
Kotlin |
 |
Kotlin implementation |
Lit |
 |
Lit framework implementation |
Preact |
 |
Preact framework implementation |
PyScript |
 |
PyScript implementation |
Qwik |
 |
Qwik framework implementation |
React |
 |
React framework implementation |
Solid |
 |
Solid.js implementation |
Svelte |
 |
Svelte framework implementation |
Vanilla JS |
 |
Native JavaScript implementation |
WebGL |
 |
WebGL implementation |
Flutter |
 |
Flutter implementation |
- 4x4格子上滑动数字块
- 相同数字的块合并
- 每次移动后随机出现2或4
- 无法移动时游戏结束
- 出现2048时获胜(可继续)
请查看各子项目文件夹中的说明文档。
- 展示各前端框架特性
- 多种游戏逻辑实现
- 响应式设计与触摸支持
- 多样化状态管理方案
MIT License