getPosition() public method

public getPosition ( ) : Vector2
return Vector2
コード例 #1
0
        protected override void Update(GameTime gameTime)
        {
            if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape))
            {
                Exit();
            }

            // TODO: Add your update logic here

            player.Update(gameTime, map.GetWalls(), map.GetSpikes(), map.getGoal());
            playerCamera.setCameraPosition(player.getPosition() - player.getOrigin() + new Vector2(player.getRotation() / 90 * 32, 0));


            base.Update(gameTime);
        }