This repository was archived by the owner on Aug 14, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Projectile.cs
Erik edited this page Apr 25, 2019
·
7 revisions
Script: Projectile.cs
- None
- Launch(Vector2 direction, Sprite _sprite, int _damage, float _falloffTime, int _maxPenetrations, float _speed) - Initializes projectile with the specified parameters and launches it in the Vector2 direction
- None
- None
Once a projectile has been created, it is typically placed on a projectile layer to prevent it from causing friendly fire. Note: this is done by configuring the project's Physics2D matrix. The projectile is launched by invoking the Launch(...) method. Object pooling is optional, but recommended. This is especially true in bullet-hell style games.
Script Documentation
General Scripts
Generic Character Scripts
Enemy Scripts
Player Scripts
Erik's ongoing laundry list of TODOs that he doesn't want to create issues for