Asteroids.Classes.Player.SetPlayerPos C# (CSharp) Method

SetPlayerPos() public method

public SetPlayerPos ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
return void
        public void SetPlayerPos(SpriteBatch sb)
        {
            playerPos.X = (sb.GraphicsDevice.Viewport.Width / 2) - hitBoxWidht;
            playerPos.Y = (sb.GraphicsDevice.Viewport.Height / 2) - hitBoxHeight;
        }