public override void Update(GameTime gameTime) { angle += 0.001f; cameraPosition = distance * new Vector3((float)Math.Sin(angle), 0, (float)Math.Cos(angle)); WVP[1] = Matrix.CreateLookAt(cameraPosition, Vector3.Zero, Vector3.UnitY); if (GamePad.GetState(PlayerIndex.One).Buttons.Start == ButtonState.Pressed) { SCREEN_MANAGER.goto_screen("Game"); } base.Update(gameTime); }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { marble = Content.Load <Model>("sphere"); sprBatch = new SpriteBatch(GraphicsDevice); SCREEN_MANAGER.add_screen(new MenuScreen(GraphicsDevice, sprBatch, ref op, ref a, ref b, ref marble)); //SCREEN_MANAGER.add_screen(new GameScreen(GraphicsDevice, sprBatch, ref op, ref a, ref b, ref marble)); //SCREEN_MANAGER.add_screen(new OptionScreen(GraphicsDevice)); //SCREEN_MANAGER.add_screen(new GameScreen(GraphicsDevice)); SCREEN_MANAGER.goto_screen("Menu"); SCREEN_MANAGER.Init(); }