예제 #1
0
 public void DrawOnBackground(int x, int y, SpriteSource sprite)
 {
     if (x >= 0 && x < Width && y >= 0 && y < Height)
     {
         _screen[x, y] = sprite;
     }
 }
예제 #2
0
 public Sprites()
 {
     Bonus = new SpriteSource[8];
     for (int i = 0; i < 8; i++)
     {
         Bonus[i] = new SpriteSource(i * 2, 10, 2);
     }
 }
예제 #3
0
 public SpriteDisplay(decimal x, decimal y, SpriteSource sprite)
 {
     XPos   = x;
     YPos   = y;
     Sprite = sprite;
 }
예제 #4
0
 public void AddSprite(decimal x, decimal y, SpriteSource sprite)
 {
     _spritesToDisplay.Add(new SpriteDisplay(x, y, sprite));
 }