CollideSystem

CollideSystem can test that if two object collide with each other.

Only three type of Shape is permitted at default, Circle, Rectangle2D and convex Polygon, yet you can implement and add your function of collide test for your requirement.

Author

KKoishi_

Types

Link copied to clipboard
data class Circle(val center: Point, val r: Int) : Shape

Properties

Link copied to clipboard

The methods used for intersection test between polygons.

Functions

Link copied to clipboard

Check if the bullet is out of the screen.

fun checkPos(x: Int, y: Int): Boolean
Link copied to clipboard
Link copied to clipboard
fun createRectangle(centerX: Double, centerY: Double, weight: Double, height: Double): Rectangle2D
Link copied to clipboard