Example #1
0
 public Player(Gamer gamer)
 {
     AvatarDescription.BeginGetFromGamer(gamer, LoadGamerAvatar, null);
     PlayersName = gamer.Gamertag;
     CurrentAvatarAnimation = new AvatarAnimation(AvatarAnimationPreset.MaleIdleLookAround);
     Ship = new Ship();
     NumberOfLives = 3;
     Level = 1;
     ScoreMultiplier = 1;
     SpeedMultiplier = 1;
     EnemyShipList = new EnemyShip[GameConstants.NumberOfEnemyShip];
     BulletList = new Bullet[GameConstants.NumBullets];
     LoadBulletList();
     CurrentGameState = GameState.TitleScreen;
     ResetEnemyShips();
 }
Example #2
0
 private void LoadBulletList()
 {
     for (var i = 0; i < BulletList.Length; i++)
         BulletList[i] = new Bullet();
 }