Пример #1
0
 protected override void LoadContent()
 {
     Rectangle dicks = new Rectangle();
     Vector2 ass;
     dicks.X = (int)ass.X;
     dicks.Y = (int)ass.Y;
     test[0] = new Item("test", Content.Load<Texture2D>("testimg"));
     // Create a new SpriteBatch, which can be used to draw textures.
     loader = new Loader(Content, GraphicsDevice);
     font = Content.Load<SpriteFont>("cheese serif");
     mainguy = loader.getSpriteExt();
     dialogueHandler = new DialogueHandler(Content.Load<Texture2D>("bubbles"), GraphicsDevice, font, mainguy);
     inventory = new Inventory(mainguy, test);
     uis = new UIManager(loader.getInventoryWindow(inventory));
     playerActions = new PlayerActions(mainguy, dialogueHandler);
     levels = loader.getLevelExt(mainguy, playerActions);
     backgroundMusic = Content.Load<Song>("test");
     currentLevel = levels[loader.getLevelIntExt()];
     currentLevel.setLoc(loader.getSaveCoords());
     playerActions.level = currentLevel;
     area = loader.getAreaExt();
     MediaPlayer.IsRepeating = true;
     MediaPlayer.Play(backgroundMusic);
     // TODO: use this.Content to load your game content here
 }