protected override void LoadContent() { Window.AllowUserResizing = true; spriteBatch = new SpriteBatch(GraphicsDevice); fontTexture = new GameFont(); fontTexture.Load(Content); plane = new Plane(Content, true, graphics.GraphicsDevice.Viewport.Width, graphics.GraphicsDevice.Viewport.Height); plane2 = new Plane(Content, false, graphics.GraphicsDevice.Viewport.Width, graphics.GraphicsDevice.Viewport.Height); viewportRect = new Rectangle(0, 0, graphics.GraphicsDevice.Viewport.Width, graphics.GraphicsDevice.Viewport.Height); backgroundTexture = Content.Load<Texture2D>("sky2"); Town = new WorldObj(); Town.Load(Content.Load<Texture2D>("basna")); tych = new cloud(); tych.Load(Content, graphics.GraphicsDevice.Viewport.Width, graphics.GraphicsDevice.Viewport.Height); Bonus = new bonusObj(Content); menu = new Menu1(); bang = new ColishunMeneger(); menu.Load(Content); }
public void Load(ContentManager content) { cursor.Load(content.Load<Texture2D>("cursor")); help = content.Load<Texture2D>("Help"); fontTexture = new GameFont(); fontTexture.Load(content); SetResolutionValue(); }