Exemplo n.º 1
0
 private void ShowScreen()
 {
     screen = new GameBoyScreen(GraphicsDevice, PPU.ScreenWidthInPixels, PPU.ScreenHeightInPixels);
     SetWindowSize(screen.Width * 3, screen.Height * 3);
     currentDisplayMode = DisplayMode.Screen;
     paused             = false;
 }
Exemplo n.º 2
0
 private void ShowWindowLayer()
 {
     screen = new GameBoyScreen(GraphicsDevice, TileMap.WidthInPixels, TileMap.HeightInPixels);
     SetWindowSize(screen.Width * 2, screen.Height * 2);
     currentDisplayMode = DisplayMode.WindowLayer;
     //paused = true;
 }
Exemplo n.º 3
0
 private void ShowTileSet()
 {
     screen = new GameBoyScreen(GraphicsDevice, TileSet.WidthInPixels, TileSet.HeightInPixels);
     SetWindowSize(screen.Width * 4, screen.Height * 4);
     currentDisplayMode = DisplayMode.TileSet;
     //paused = true;
 }
Exemplo n.º 4
0
        private void ShowScreen()
        {
            screen = new GameBoyScreen(GraphicsDevice, width: 160, height: 144);
            SetWindowSize(screen.Width * 3, screen.Height * 3);

            string inputFile = Path.Combine("input", sceneName + ".screen.bin");

            screen.PutPixelsFromFile(palette, inputFile);

            Window.Title = $"MonoGameBoy [{inputFile}]";
        }
Exemplo n.º 5
0
        private void ShowTileSet()
        {
            string inputFile = Path.Combine("input", sceneName + ".tileset.bin");

            if (!File.Exists(inputFile))
            {
                return;
            }

            screen = new GameBoyScreen(GraphicsDevice, width: 128, height: 192);
            screen.PutPixelsFromFile(palette, inputFile);
            SetWindowSize(screen.Width * 4, screen.Height * 4);

            Window.Title = $"MonoGameBoy - Tiles [{inputFile}]";
        }
Exemplo n.º 6
0
        private void ShowSpriteLayer()
        {
            string inputFile = Path.Combine("input", sceneName + ".sprites.bin");

            if (!File.Exists(inputFile))
            {
                return;
            }

            screen = new GameBoyScreen(GraphicsDevice, width: 160, height: 144);
            screen.PutPixelsFromFile(palette, inputFile);
            SetWindowSize(screen.Width * 3, screen.Height * 3);

            Window.Title = $"MonoGameBoy - Sprite Layer [{inputFile}]";
        }
Exemplo n.º 7
0
        private void ShowBackgroundMap()
        {
            string inputFile = Path.Combine("input", sceneName + ".bgmap.bin");

            if (!File.Exists(inputFile))
            {
                return;
            }

            screen = new GameBoyScreen(GraphicsDevice, width: 256, height: 256);
            screen.PutPixelsFromFile(palette, inputFile);
            SetWindowSize(screen.Width * 2, screen.Height * 2);

            Window.Title = $"MonoGameBoy - Background Map [{inputFile}]";
        }