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