Example #1
0
        public ProjectileComponent AddProjectile(FourDirectionPlayerComponent component, string sheetName, float acceleration)
        {
            Vector2             direction  = component.GetProjectileDirection();
            ProjectileComponent projectile = new ProjectileComponent(this, component, sheetName, direction, acceleration);

            Components.Add(projectile);
            return(projectile);
        }
Example #2
0
 public ProjectileComponent AddProjectile(FourDirectionPlayerComponent component, string sheetName, float acceleration)
 {
     Vector2 direction = component.GetProjectileDirection();
     ProjectileComponent projectile = new ProjectileComponent(this, component, sheetName, direction, acceleration);
     Components.Add(projectile);
     return projectile;
 }