private void ShowScreen() { screen = new GameBoyScreen(GraphicsDevice, PPU.ScreenWidthInPixels, PPU.ScreenHeightInPixels); SetWindowSize(screen.Width * 3, screen.Height * 3); currentDisplayMode = DisplayMode.Screen; paused = false; }
private void ShowWindowLayer() { screen = new GameBoyScreen(GraphicsDevice, TileMap.WidthInPixels, TileMap.HeightInPixels); SetWindowSize(screen.Width * 2, screen.Height * 2); currentDisplayMode = DisplayMode.WindowLayer; //paused = true; }
private void ShowTileSet() { screen = new GameBoyScreen(GraphicsDevice, TileSet.WidthInPixels, TileSet.HeightInPixels); SetWindowSize(screen.Width * 4, screen.Height * 4); currentDisplayMode = DisplayMode.TileSet; //paused = true; }
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}]"; }
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}]"; }
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}]"; }
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}]"; }