Exemple #1
0
        public Screen(Chip8 chip8)
        {
            _cpu = chip8.Cpu;
            _width = InternalWidth * Pixel.PixelWidth;
            _height = InternalHeight * Pixel.PixelHeight;

            _pixels = new Pixel[InternalWidth][];
            for (int i = 0; i < InternalWidth; i++)
                _pixels[i] = new Pixel[InternalHeight];
        }
Exemple #2
0
 public Chip8()
 {
     _cpu = new Cpu(this);
     _screen = new Screen(this);
 }