Package | Description |
---|---|
org.homebrew.engine |
Modifier and Type | Field and Description |
---|---|
protected Point2D |
Sprite.pos
sprites position
|
protected Point2D |
Sprite.vel
sprites velocity
|
Modifier and Type | Method and Description |
---|---|
Point2D |
Sprite.center()
returns the center position of the image as a tuple
|
Point2D |
Sprite.Position()
Reurns the sprites position as a single tuple
|
Point2D |
Sprite.Velocity()
returns the sprites velocity as a single tuple
|
Modifier and Type | Method and Description |
---|---|
boolean |
Sprite.collidesWith(Point2D point)
returns if the sprite collides with another point
|
void |
Sprite.setPosition(Point2D pos)
sets the sprites position
|
void |
Sprite.setVelocity(Point2D vel)
sets the sprites velocity
|