Property | Type | Description | |
---|---|---|---|
DEFAULT_LIFESPAN | System.TimeSpan |
Method | Description | |
---|---|---|
Draw ( |
The drawing of the laser projectile should be different because it's not a sprite
|
|
LaserProjectile ( Microsoft.Xna.Framework.Game g, Vector2 position, Vector2 velocity, Vector2 direction, int attackPower ) : System |
Construct a laser projectile with a direction.
|
|
Update ( |
Basic update logic.
|
Method | Description | |
---|---|---|
LaserProjectile ( Microsoft.Xna.Framework.Game g, Vector2 position, Vector2 velocity, int attackPower ) : System |
public Draw ( |
||
time | The current game time. | |
return | void |
public LaserProjectile ( Microsoft.Xna.Framework.Game g, Vector2 position, Vector2 velocity, Vector2 direction, int attackPower ) : System | ||
g | Microsoft.Xna.Framework.Game | The game containing this object. |
position | Vector2 | Initial position. |
velocity | Vector2 | This really has no effect on this type of projectile. |
direction | Vector2 | Which way is the laser going? |
attackPower | int | How much damage will it do? |
return | System |
public Update ( |
||
time | The current game time. | |
return | void |