Skip navigation links
D F G I K M R S T 

D

display() - Method in class ktbyte.sprite.Sprite
Draws the Sprite.
displayHitbox() - Method in class ktbyte.sprite.Sprite
Draws the Sprite's hitbox.
distTo(Sprite) - Method in class ktbyte.sprite.Sprite
Calculates the distance from this Sprite to Sprite s
distToPoint(float, float) - Method in class ktbyte.sprite.Sprite
Calculates the distance from this Sprite to the specified point

F

flip() - Method in class ktbyte.sprite.Sprite
Flips Sprite image across its X axis
flipX() - Method in class ktbyte.sprite.Sprite
Changes the direction of the Sprite by flipping the x component of its direction
flipY() - Method in class ktbyte.sprite.Sprite
Changes the direction of the Sprite by flipping the y component of its direction
forward(float) - Method in class ktbyte.sprite.Sprite
Moves the Sprite forward in the direction it is facing.
frontAngle(float) - Method in class ktbyte.sprite.Sprite
Adjust the direction of the PImage of the Sprite without changing its orientation

G

getDir() - Method in class ktbyte.sprite.Sprite
Gets the direction of the Sprite
getH() - Method in class ktbyte.sprite.Sprite
Gets the height of the Sprite
getImage() - Method in class ktbyte.sprite.Sprite
Gets the image of the Sprite
getW() - Method in class ktbyte.sprite.Sprite
Gets the width of the Sprite
getX() - Method in class ktbyte.sprite.Sprite
Gets the x coordinate of the Sprite
getY() - Method in class ktbyte.sprite.Sprite
Gets the y coordinate of the Sprite

I

init(PApplet) - Static method in class ktbyte.sprite.Sprite
 
insideSprite(Sprite) - Method in class ktbyte.sprite.Sprite
Checks to see if this Sprite is fully inside another sprite.
isInsideScreen() - Method in class ktbyte.sprite.Sprite
Checks whether this Sprite's hitbox is at least partially inside the canvas

K

ktbyte.sprite - package ktbyte.sprite
The package sprite contains classes that implements Sprite

M

moveToPoint(float, float) - Method in class ktbyte.sprite.Sprite
Moves the Sprite to the specified coordinate.
moveToSprite(Sprite) - Method in class ktbyte.sprite.Sprite
Moves the Sprite to the specified Sprite s
moveX(float) - Method in class ktbyte.sprite.Sprite
Moves the Sprite in the x axis by the specified amount.
moveXY(float, float) - Method in class ktbyte.sprite.Sprite
Moves the Sprite in the x and y axes by the specified amounts.
moveY(float) - Method in class ktbyte.sprite.Sprite
Moves the Sprite in the y axis by the specified amount.

R

resetHitboxCenter() - Method in class ktbyte.sprite.Sprite
Recenter the Sprite's hitbox to its center
resetRectHitbox() - Method in class ktbyte.sprite.Sprite
Resets the Sprite's hitbox to its own width and height
resetRoundHitbox() - Method in class ktbyte.sprite.Sprite
Sets the Sprite's hitbox to a circle with radius equals to (sum of its width and height) / 4.

S

setColor(float, float, float) - Method in class ktbyte.sprite.Sprite
Changes the color of a Sprite.
setCoor(float, float) - Method in class ktbyte.sprite.Sprite
Moves the Sprite to the specified coordinate.
setHitboxCenter(float, float) - Method in class ktbyte.sprite.Sprite
Recenter the Sprite's hitbox relative to its center
setHitboxPoints(PVector[]) - Method in class ktbyte.sprite.Sprite
Set the Sprite's hitbox to a polygon defined by a list of PVectors (points) relative to its center
setImage(PImage) - Method in class ktbyte.sprite.Sprite
Changes the image of the Sprite
setRectHitbox(float, float) - Method in class ktbyte.sprite.Sprite
Adjusts the Sprite's hitbox, which is set to the Sprite's width and height by default.
setRoundHitbox(float) - Method in class ktbyte.sprite.Sprite
Sets the Sprite's hitbox to a circle.
setSize(float, float) - Method in class ktbyte.sprite.Sprite
Sets the size of the Sprite.
setX(float) - Method in class ktbyte.sprite.Sprite
 
setY(float) - Method in class ktbyte.sprite.Sprite
 
sideStep(float) - Method in class ktbyte.sprite.Sprite
Moves the Sprite in the direction 90 degrees clockwise from its forward direction.
Sprite - Class in ktbyte.sprite
The Sprite class keeps track of a Sprite (image) and its size, direction, position and hitbox.
Sprite(String, float, float, float, float) - Constructor for class ktbyte.sprite.Sprite
Initializes the Sprite with the given image URL, coordinates and size.
Sprite(float, float, float, float) - Constructor for class ktbyte.sprite.Sprite
Initializes the Sprite with the given coordinates and size to a rectangle with a solid black color.
Sprite(Sprite) - Constructor for class ktbyte.sprite.Sprite
Makes a copy of the input Sprite, with identical image, coordinates and size.

T

touchingPoint(float, float) - Method in class ktbyte.sprite.Sprite
Checks whether this Sprite is touching the specified point.
touchingSprite(Sprite) - Method in class ktbyte.sprite.Sprite
Checks to see if this Sprite is touching Sprite s.
turn(float) - Method in class ktbyte.sprite.Sprite
Rotates the Sprite by a specified number of degrees
turnToDir(float) - Method in class ktbyte.sprite.Sprite
Rotates the Sprite to specified (absolute) angle.
turnToPoint(float, float) - Method in class ktbyte.sprite.Sprite
Rotates the Sprite to face the specified (x, y) location
turnToSprite(Sprite) - Method in class ktbyte.sprite.Sprite
Rotates the Sprite to the specified Sprite s
D F G I K M R S T 
Skip navigation links

Copyright © 2019 JSweet. All rights reserved.