示例#1
0
        public GPU(System.Windows.Controls.Image image)
        {
            _renderImage = image;

            _emulatorThread = new Thread(RunCycles);
            _chip8          = new CPU.Chip8();
        }
示例#2
0
        public Game1()
        {
            _graphics       = new GraphicsDeviceManager(this);
            _emulatorThread = new Thread(RunCycles);
            _chip8          = new CPU.Chip8();

            Content.RootDirectory = "Content";
            IsMouseVisible        = true;
        }
示例#3
0
        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();
        }