Skip to content

Mindyu/2048Game

Repository files navigation

2048Game

安卓端2048的小游戏

以int二维数组的形式存储每个方块的数据,通过该数字绘制每个TextView的Text以及背景色。

游戏的触摸事件,通过计算手指放下与松开的位置坐标,来得到水平竖直方向上的偏移量,然后判断滑动的方向。 以做出相应的变化。

采用SharePreference数据存储形式,以xml文件存储最高分于手机本地。

About

安卓端2048的小游戏

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages