Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public void Render(GraphicsBuffer buffer)
 {
     buffer.DrawBackground(
         background,
         0,
         0,
         GraphicsBuffer.GameWidth,
         GraphicsBuffer.GameHeight,
         paletteIndex);
 }