| Modifier and Type | Method and Description |
|---|---|
float |
Sprite.distTo(Sprite s)
Calculates the distance from this Sprite to Sprite s
|
boolean |
Sprite.insideSprite(Sprite s)
Checks to see if this Sprite is fully inside another sprite.
|
void |
Sprite.moveToSprite(Sprite s)
Moves the Sprite to the specified Sprite s
|
boolean |
Sprite.touchingSprite(Sprite s)
Checks to see if this Sprite is touching Sprite s.
|
void |
Sprite.turnToSprite(Sprite s)
Rotates the Sprite to the specified Sprite s
|
| Constructor and Description |
|---|
Sprite(Sprite s)
Makes a copy of the input Sprite, with identical image, coordinates and size.
|
Copyright © 2019 JSweet. All rights reserved.