public void Render(GraphicsBuffer buffer) { var pattern = new[] { scheme.Base, scheme.Light, scheme.Lighter, scheme.Light, scheme.Base }; foreach (var index in Enumerable.Range(0, pattern.Length)) buffer.DrawFrame( topRow + index, leftColumn + index, width - 2 * index, height - 2 * index, pattern[index]); buffer.DrawBackground( background, topRow + pattern.Length, leftColumn + pattern.Length, width - 2 * pattern.Length, height - 2 * pattern.Length, paletteIndex); }
public void Render(GraphicsBuffer buffer) { buffer.DrawBackground( background, 0, 0, GraphicsBuffer.GameWidth, GraphicsBuffer.GameHeight, paletteIndex); }