Scratch for Java

Hitbox()

Represents a hitbox with a shape that can be transformed by scaling, translating, and rotating it.

Examples

View on GitHub

Syntax

Java

new Hitbox(shape)
new Hitbox(xPoints, yPoints)
Hitbox()

Create Shareable URL

Select Sections