コード例 #1
0
        public override void Draw(GameTime gameTime)
        {
            SpriteBatch spriteBatch = Game.Services.GetService <SpriteBatch>();

            // Draw Background
            spriteBatch.Draw(texture,
                             new Rectangle(Point.Zero, Camera.WorldBound.ToPoint()),
                             new Rectangle(Point.Zero, new Point(
                                               Helper.GraphicsDevice.Viewport.Bounds.Width,
                                               Helper.GraphicsDevice.Viewport.Bounds.Height)), Color.LightSlateGray);

            // Draw Territories
            foreach (var Continent in Continents)
            {
                foreach (var Territory in Continent.Territories)
                {
                    Territory.Draw(spriteBatch);
                }
            }
        }