예제 #1
0
        public void draw(SpriteBatch spriteBatch, Vector2 sourceVector)
        {
            //Calculate the actual vector to draw to based on the source vector from the level and the vector of the player.
            Vector2 drawVector = vector - sourceVector;

            inventory.draw(spriteBatch, sourceVector, rotation);

            spriteBatch.Draw(texture, drawVector, null, Color.White, rotation, new Vector2(10), 1.0f, SpriteEffects.None, 0f);
        }