Exemplo n.º 1
0
 public void InsertCartridge(Cartridge cartridge)
 {
     CurrentCartridge = cartridge;
     CurrentCartridge.Setup(this, this.specification);
     CurrentCartridge.CurrentGameCanvas.SetWindowSize(WindowInterface.CurrentWindowSize);
     MachinaClient.Graphics.ApplyChanges();
 }
Exemplo n.º 2
0
        public void BuildDebugScene(Cartridge cartridge)
        {
            DebugScene = new Scene(this);
            DebugScene.SetGameCanvas(new GameViewport(gameCanvas.WindowSize, ResizeBehavior.FreeAspectRatio));
            var overlayOutputConsole = DebugBuilder.BuildOutputConsole(this);

            cartridge.PushLogger(overlayOutputConsole);

            // DebugBuilder.CreateFramerateCounter(this);
            DebugBuilder.CreateFramestep(this);
            DebugDock = DebugBuilder.CreateDebugDock(this);
        }