Constructor
new Projectile(config)
- Source:
- Implements:
Parameters:
Name | Type | Description |
---|---|---|
config |
ClubCrawler.Objects.Weapon | The firing weapon |
Methods
dealDamage()
- Source:
Called by Interfaces.Interact when damage is dealt
fireAt(target)
- Source:
Gives bullet velocity towards target
Parameters:
Name | Type | Description |
---|---|---|
target |
Object | with an x and y |
hitWall()
- Source:
Called when wall collide occurs