Ejemplo n.º 1
0
 internal void presentScene(DScene scene)
 {
     DGame.current.contentManager.unload();
     this.scene     = scene;
     DScene.current = scene;
     scene.load();
     scene.updateSize(size);
     GC.Collect();
 }
Ejemplo n.º 2
0
        internal void update(DScene scene, Vector2 somePosition)
        {
            if (parent == null)
            {
                return;
            }

            parent.position = -somePosition + scene.size / 2.0f;
        }
Ejemplo n.º 3
0
 public DGame(DScene someScene)
 {
     graphicsDeviceManager    = new GraphicsDeviceManager(this);
     Content.RootDirectory    = "Content";
     IsMouseVisible           = true;
     Window.AllowUserResizing = true;
     scene        = someScene;
     inputManager = new DInputManager();
     current      = this;
 }