Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 2.67 KB

README.md

File metadata and controls

46 lines (34 loc) · 2.67 KB

2048游戏合集

这个项目是一个使用不同前端框架和技术实现的2048游戏合集。每个子项目都展示了如何使用特定的框架来构建这个经典的数字滑块游戏。

项目结构

Framework Badge Description
Angular Angular Angular implementation
Backbone.js Backbone.js Backbone.js implementation
Canvas Canvas Native Canvas implementation
Kotlin Kotlin Kotlin implementation
Lit Lit Lit framework implementation
Preact Preact Preact framework implementation
PyScript PyScript PyScript implementation
Qwik Qwik Qwik framework implementation
React React React framework implementation
Solid Solid Solid.js implementation
Svelte Svelte Svelte framework implementation
Vanilla JS JavaScript Native JavaScript implementation
WebGL WebGL WebGL implementation
Flutter Flutter Flutter implementation

游戏规则

  1. 4x4格子上滑动数字块
  2. 相同数字的块合并
  3. 每次移动后随机出现2或4
  4. 无法移动时游戏结束
  5. 出现2048时获胜(可继续)

运行说明

请查看各子项目文件夹中的说明文档。

技术特点

  • 展示各前端框架特性
  • 多种游戏逻辑实现
  • 响应式设计与触摸支持
  • 多样化状态管理方案

许可证

MIT License