Beispiel #1
0
 /// <see cref="ViewPort.Draw"/>
 public override void Draw(IDrawTarget drawTarget, Rectangle drawRect)
 {
     drawTarget.Clear(CGAColor.Black);
     for (int i = 0; i < this.players.Length; i++)
     {
         this.players[i].Draw(drawTarget, drawRect);
     }
 }
Beispiel #2
0
 public override void Draw(IDrawTarget drawTarget, Rectangle drawRect)
 {
     drawTarget.Clear(this.backgroundColor);
     for (int i = 0; i < this.spritePositions.Length; i++)
     {
         drawTarget.DrawBitmap(this.testSprite, this.spritePositions[i].X, this.spritePositions[i].Y);
     }
 }