Beispiel #1
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}]";
        }
Beispiel #2
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}]";
        }
Beispiel #3
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}]";
        }
Beispiel #4
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}]";
        }