Esempio n. 1
0
 protected override void LoadContent()
 {
     MediaPlayer.Volume = 0.5f;
     SoundManager.InitSoundLists();
     background.Load(Content);
     cameraX      = 400;
     Camera.Scale = 1f;
     globalSounds.load(Content);
     magzzz.initializeAmmo();
     spriteBatch = new SpriteBatch(GraphicsDevice);
     spriteFont  = Content.Load <SpriteFont>("MyFont");
     CharactersHandler.InitList();
     MenusHandler.load(Content, this, Camera);
     TesteMapa = new Map();
     TesteMapa.Load(Content);
     GhostCharacter = CharactersHandler.getCharacter(5);
     //////mudar esta posicao para a posicao do menu!\\\\\\\\\\\\\\\\\
     GhostCharacter.SetCharacterPosition(new Vector2(cameraX, 350));
     CharactersHandler.AddPlayer(GhostCharacter);
     Camera.Focus = CharactersHandler.Players[0];
     GhostCharacter.Load(Content);
     Interface.load(Content);
 }