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]; }
public Chip8() { _cpu = new Cpu(this); _screen = new Screen(this); }