Files
CocosCreatorTutorial/RollingNumber/README.md
2020-04-07 19:24:24 +08:00

11 lines
270 B
Markdown

# RollingNumber
### 原理
* 确定起点、终点
* 确定移动方向
* 判断偏移的正负
* 判断是否超过边界
* 如果有回弹,判断回弹方向
### 实现
![如图](https://github.com/Leo501/CocosCreatorTutorial/blob/master/image/RollingNumber_1.png)