- 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.