Extends
Classes
Members
angle :number
Angle in degrees
Type:
- number
- Overrides:
- Source:
orientation :Angle
Orientation of the sprite
Type:
- Overrides:
- Source:
parent :Group|null
Type:
- Group | null
- Overrides:
- Source:
position :Vector2
World space position.
Type:
- Overrides:
- Source:
Methods
fromJson(renderer)
Parameters:
Name | Type | Description |
---|---|---|
renderer |
Renderer |
- Inherited From:
- Source:
init(entity)
Parameters:
Name | Type | Description |
---|---|---|
entity |
Entity |
- Overrides:
- Source:
render(ctx)
Parameters:
Name | Type | Description |
---|---|---|
ctx |
CanvasRenderingContext2D |
- Overrides:
- Source:
toJson() → {*}
- Inherited From:
- Source:
Returns:
- Type
- *