https://github.com/xiaohaoo/sports-ball
模拟实现了小球落下的效果以及触碰边界反弹的效果,同时在长按屏幕时,会出现一个带有引力的小球,这个小球会影响其他小球的运动轨迹。主要使用Canvas绘图
https://github.com/xiaohaoo/sports-ball
Last synced: about 1 year ago
JSON representation
模拟实现了小球落下的效果以及触碰边界反弹的效果,同时在长按屏幕时,会出现一个带有引力的小球,这个小球会影响其他小球的运动轨迹。主要使用Canvas绘图
- Host: GitHub
- URL: https://github.com/xiaohaoo/sports-ball
- Owner: xiaohaoo
- License: other
- Created: 2021-05-15T03:55:06.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-15T03:55:38.000Z (about 5 years ago)
- Last Synced: 2025-04-13T12:10:05.098Z (about 1 year ago)
- Language: Java
- Homepage:
- Size: 50.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.en.md
- License: LICENSE
Awesome Lists containing this project
README
# SportsBall
[中文](README.md) | English
## Introduction
At the same time, when long press the screen, a small ball with gravity
will appear, which will affect the trajectory of other small balls.
The principle of the rebound of the ball boundary and the gravitational
effect: **speed decomposition**.
## Development Technology
1. SurfaceView (or TextureView, GLSurfaceView) display
2. Canvas drawing
## Preview
