public override void OnStart(QGetContent get)
 {
     sprite       = new QSprite(this, get.TextureSource(Name));
     sprite.Color = QRandom.Color();
     body         = Physics.CreateRectangle(this, Width, Height);
     body.ApplyForce(DirectionOfMovement);
     body.IsBullet = true;
 }
Exemple #2
0
 public override void OnStart(QGetContent get)
 {
     Sprite       = new QSprite(this, get.TextureSource(Name));
     Sprite.Color = QRandom.Color();
     body         = Physics.CreateCircle(this, Radius);
     body.ApplyForce(DirectionOfMovement);
     body.IsBullet = true;
 }