Exemplo n.º 1
0
 public void CoinGet()
 {
     if (!coinGet)
     {
         displayTime = 100;
         displayed = AchievementDisplays.coin;
     }
     coinGet = true;
 }
Exemplo n.º 2
0
 public Achievements()
 {
     firstGoomba = false;
     firstKoopa = false;
     mushroomGet = false;
     flowerGet = false;
     starGet = false;
     fireKill = false;
     displayTime = 0;
     displayed = AchievementDisplays.none;
 }
Exemplo n.º 3
0
 public void Draw(SpriteBatch batch, SpriteFont font)
 {
     if (displayTime > 0)
     {
         displayTime--;
         switch (displayed)
         {
             case AchievementDisplays.goombaKill:
                 batch.DrawString(font, "ACHIEVEMENT: Kill a Goomba!", new Vector2(10, 45), Color.White);
                 break;
             case AchievementDisplays.koopaKill:
                 batch.DrawString(font, "ACHIEVEMENT: Kill a Koopa!", new Vector2(10, 45), Color.White);
                 break;
             case AchievementDisplays.coin:
                 batch.DrawString(font, "ACHIEVEMENT: Get a Coin!", new Vector2(10, 45), Color.White);
                 break;
             case AchievementDisplays.mushroom:
                 batch.DrawString(font, "ACHIEVEMENT: Get a Mushroom!", new Vector2(10, 45), Color.White);
                 break;
             case AchievementDisplays.flower:
                 batch.DrawString(font, "ACHIEVEMENT: Get a FireFlower!", new Vector2(10, 45), Color.White);
                 break;
             case AchievementDisplays.star:
                 batch.DrawString(font, "ACHIEVEMENT: Get Star Power!", new Vector2(10, 45), Color.White);
                 break;
             case AchievementDisplays.fire:
                 batch.DrawString(font, "ACHIEVEMENT: Kill it with fire!", new Vector2(10, 45), Color.White);
                 break;
             case AchievementDisplays.end:
                 batch.DrawString(font, "ACHIEVEMENT: Finish level 1-1!", new Vector2(10, 45), Color.White);
                 break;
             default:
                 //do nothing
                 break;
         }
     }
     else
     {
         displayed = AchievementDisplays.none;
     }
 }
Exemplo n.º 4
0
 public void MushroomGet()
 {
     if (!mushroomGet)
     {
         displayTime = 100;
         displayed = AchievementDisplays.mushroom;
     }
     mushroomGet = true;
 }
Exemplo n.º 5
0
 public void StarGet()
 {
     if (!starGet)
     {
         displayTime = 100;
         displayed = AchievementDisplays.star;
     }
     starGet = true;
 }
Exemplo n.º 6
0
 public void KoopaKill()
 {
     if (!firstKoopa)
     {
         displayTime = 100;
         displayed = AchievementDisplays.koopaKill;
     }
     firstKoopa = true;
 }
Exemplo n.º 7
0
 public void GoombaKill()
 {
     if (!firstGoomba)
     {
         displayTime = 100;
         displayed = AchievementDisplays.goombaKill;
     }
     firstGoomba = true;
 }
Exemplo n.º 8
0
 public void FlowerGet()
 {
     if (!flowerGet)
     {
         displayTime = 100;
         displayed = AchievementDisplays.flower;
     }
     flowerGet = true;
 }
Exemplo n.º 9
0
 public void FireKill()
 {
     if (!fireKill)
     {
         displayTime = 100;
         displayed = AchievementDisplays.fire;
     }
     fireKill = true;
 }
Exemplo n.º 10
0
 public void Ending()
 {
     displayTime = 100;
     displayed = AchievementDisplays.end;
 }