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