internal void presentScene(DScene scene) { DGame.current.contentManager.unload(); this.scene = scene; DScene.current = scene; scene.load(); scene.updateSize(size); GC.Collect(); }
internal void update(DScene scene, Vector2 somePosition) { if (parent == null) { return; } parent.position = -somePosition + scene.size / 2.0f; }
public DGame(DScene someScene) { graphicsDeviceManager = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; IsMouseVisible = true; Window.AllowUserResizing = true; scene = someScene; inputManager = new DInputManager(); current = this; }