protected override void Initialize() { _chip8.Initalize(); _chip8.LoadGame(@"C:\Users\Hayden\Downloads\myChip8-bin-src\myChip8-bin-src\PONG2.c8"); _graphics.SynchronizeWithVerticalRetrace = false; IsFixedTimeStep = false; _emulatorThread.Start(); Log.Information("Emulator thread started."); base.Initialize(); }
protected override void Initialize() { chip8 = new CPU.Chip8(); chip8.Initalize(); chip8.LoadGame(@"C:\Users\Hayden\Downloads\myChip8-bin-src\myChip8-bin-src\pong2.c8"); _graphics.SynchronizeWithVerticalRetrace = false; this.IsFixedTimeStep = false; emulatorThread = new Thread(RunCycles); emulatorThread.Start(); base.Initialize(); }
public void Initialize() { _chip8.Initalize(); //_chip8.LoadGame(@"C:\Users\Hayden\Downloads\myChip8-bin-src\myChip8-bin-src\PONG2.c8"); _chip8.LoadGame(@"C:\Users\Luke\Downloads\c8games\PONG2.ch8"); //_chip8.LoadGame(@"C:\Users\Luke\Downloads\c8games\BRIX.ch8"); _audioStream = GenerateAudio(); _soundPlayer = new System.Media.SoundPlayer(_audioStream); _soundPlayer.Load(); _bmp = new DirectBitmap(64, 32); _wbmp = new WriteableBitmap(64, 32, 72, 72, System.Windows.Media.PixelFormats.Indexed8, BitmapPalettes.Halftone256); _renderImage.Dispatcher.Invoke(new Action(() => { _renderImage.Source = _wbmp; })); _emulatorThread.Start(); Log.Information("Emulator thread started."); }