Methods
_removeBullet(index)
- Source:
Remove a bullet from array.
Parameters:
Name | Type | Description |
---|---|---|
index |
number | Index of the bullet. |
addBullet(bullet)
- Source:
Add a bullet to array.
Parameters:
Name | Type | Description |
---|---|---|
bullet |
Bullet | Bullet class instance. |
draw(bullets)
- Source:
Draws all bullets.
Parameters:
Name | Type | Description |
---|---|---|
bullets |
Array.<Bullet> |