Modifier and Type | Method and Description |
---|---|
(package private) boolean |
Action.apply(Sprite target,
double deltaTime)
Increments totalTime by deltaTime and applies function.run method to target.
|
void |
Sprite.bounceAgainst(Sprite other)
Simulate this sprite bouncing off other sprite.
|
boolean |
TileMap.checkSpriteOverlap(Sprite sprite)
Check if a sprite overlaps any Tile in this TileMap.
|
boolean |
Input.isClicked(Sprite sprite)
Determine if (any) mouse button has recently been pressed
while mouse cursor position is contained with bounding area of a sprite.
|
boolean |
Sprite.isOverlapping(Sprite other)
Check if this sprite is overlapping another sprite.
|
void |
Sprite.preventOverlap(Sprite other)
Prevent this sprite from overlapping another sprite.
|
void |
TileMap.preventSpriteOverlap(Sprite sprite)
Prevent sprite from overlapping with any Tile in this TileMap.
|
boolean |
Action.Function.run(Sprite target,
double deltaTime,
double totalTime) |