An open API service indexing awesome lists of open source software.

https://github.com/xiaohaoo/sports-ball

模拟实现了小球落下的效果以及触碰边界反弹的效果,同时在长按屏幕时,会出现一个带有引力的小球,这个小球会影响其他小球的运动轨迹。主要使用Canvas绘图
https://github.com/xiaohaoo/sports-ball

Last synced: about 1 year ago
JSON representation

模拟实现了小球落下的效果以及触碰边界反弹的效果,同时在长按屏幕时,会出现一个带有引力的小球,这个小球会影响其他小球的运动轨迹。主要使用Canvas绘图

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