Пример #1
0
        public void LoadContent(ContentManager content)
        {
            spriteFont = content.Load<SpriteFont>("font");
            bgTexture = content.Load<Texture2D>("space");
            pBullets = content.Load<Texture2D>("beams");
            boom = content.Load<Texture2D>("Exp");
            bossHealthBar = content.Load<Texture2D>("yRect");
            playerHealthBar = content.Load<Texture2D>("rRect");
            splitter = content.Load<Texture2D>("Asteroid-A-10-27");

            shoots = content.Load<SoundEffect>("shooting");
            gameSong = content.Load<Song>("8bit");
            bossFight = content.Load<Song>("Rush");
            explosionSound = content.Load<SoundEffect>("explosionSound");

            PlaySong(gameSong);

            p = gModel.Player;
            l = gModel.Levelsystem;
        }
Пример #2
0
 public GameModel(ContentManager content)
 {
     player = new Player(content.Load<Texture2D>("ship0"), content.Load<Texture2D>("ship2"), content.Load<Texture2D>("ship-2"));
     levelsystem = new Levelsystem(content);
 }