/// <summary> /// Allows the game to run logic such as updating the world, /// checking for collisions, gathering input, and playing audio. /// </summary> public void UpdateGame() { mHero.Update(); mAnotherHero.Update(); UserControlUpdate(); }
/// <summary> /// Allows the game to run logic such as updating the world, /// checking for collisions, gathering input, and playing audio. /// </summary> public void UpdateGame() { mHero.Position += InputWrapper.ThumbSticks.Left; mHero.Update(); CollisionUpdate(); UserControlUpdate(); }
/// <summary> /// Allows the game to run logic such as updating the world, /// checking for collisions, gathering input, and playing audio. /// </summary> public void UpdateGame() { // Change the hero position by thumbstick Vector2 heroMoveDelta = InputWrapper.ThumbSticks.Left; mHero.Position += heroMoveDelta; mHero.Update(); CollisionUpdate(); if (mHeroPixelCollision) // back hero out of the collision!! { mHero.Position -= heroMoveDelta; } HeroMovingCameraWindow(); UserControlUpdate(); }