Ejemplo n.º 1
0
 // Renders a screen scroll.
 private void RenderRoomScroll(BlitImage screenImage, int x, int y)
 {
     ScrollColorToRGBA(GetScroll(x, y), out byte red, out byte green,
                       out byte blue, out byte alpha);
     screenImage.DrawRectangle(0, 0, 256, 3, red, green, blue, alpha);
     screenImage.DrawRectangle(0, 253, 256, 3, red, green, blue, alpha);
     screenImage.DrawRectangle(0, 3, 3, 250, red, green, blue, alpha);
     screenImage.DrawRectangle(253, 3, 3, 250, red, green, blue, alpha);
 }
Ejemplo n.º 2
0
        // Renders a PLM or ASM scroll
        private void RenderScrollModification(BlitImage screenImage, int x, int y)
        {
            if (ActiveScrollData is ScrollSet || ActiveScrollData == null)
            {
                return;
            }
            ScrollColor color = ActiveScrollData [RoomWidthInScreens * y + x];

            ScrollColorToRGBA(color, out byte red, out byte green,
                              out byte blue, out byte alpha);
            screenImage.DrawRectangle(96, 96, 64, 64, red, green, blue, alpha);
        }