예제 #1
0
        private void DrawMap(SpriteBatch spriteBatch)
        {
            //Draw the worlds map scaled down
            float   scale    = 0.5f;
            Vector2 Position = new Vector2(0, GraphicsDevice.Viewport.Height) - new Vector2(-8, world.GetSize().Y *scale);

            spriteBatch.Draw(world.getMap(), Position, null, Color.White, 0, Vector2.Zero, scale, SpriteEffects.None, 0);
            spriteBatch.Draw(CameraView, (cp.camera.Position * scale) + Position, null, Color.White, 0, ZeroVector, (scale / Tile.Zoom), SpriteEffects.None, 0);
        }