Constructor
new Group(sprites)
- Source:
Parameters:
Name |
Type |
Description |
sprites |
Array.<Sprite>
|
|
Extends
Classes
- Group
Methods
add(sprite)
- Description:
- Adds another sprite to this one
- Source:
Parameters:
remove(sprite, recursiveopt, indexopt)
- Description:
- Removes another sprite to this one
- Source:
Parameters:
Name |
Type |
Attributes |
Default |
Description |
sprite |
Sprite
|
Group
|
|
|
|
recursive |
boolean
|
<optional>
|
false
|
|
index |
number
|
<optional>
|
|
|
render(ctx, dt)
- Source:
Parameters:
Name |
Type |
Description |
ctx |
CanvasRenderingContext2D
|
|
dt |
number
|
|