Beispiel #1
0
 public Bullet(Vector2 velocity, Vector2 position, float facingAngle, Survivor origin)
 {
     //Position
     Position = position;
     //Angle
     FacingAngle = facingAngle;
     //Collision Radius is 5
     CollisionRadius = 5;
     //Velocity is set to velocity
     Velocity = velocity;
     //Sprite for bullet
     Sprite = GraphicAssets.Bullet;
     //Set is alive to true
     IsAlive = true;
     //Set the origin
     SurvOrigin  = origin;
     SpriteColor = Color.White;
 }