Пример #1
0
Файл: Ppu.cs Проект: Nyllcp/pNes
 public Ppu(Cartridge cart, Core core)
 {
     _cart = cart;
     _core = core;
     for (int i = 0; i < sOam.Length; i++)
     {
         sOam[i] = new SpriteObject(this);
     }
 }
Пример #2
0
 public Core()
 {
     _cart = new Cartridge();
     _cpu  = new Processor(this);
     _ppu  = new Ppu(_cart, this);
     _apu  = new Apu(this);
     for (int i = 0; i < _saveStates.Length; i++)
     {
         _saveStates[i] = new Savestate();
     }
 }