Exemple #1
0
        public Tombstone(Creature source)
        {
            currentLevel = Game1.GetInstance().currentLevel;
            int chance = currentLevel.random.Next(4);

            switch (chance)
            {
                case 0:
                    this.texture = AkumaContentManager.stoneTex;
                    break;
                case 1:
                    this.texture = AkumaContentManager.stoneTex2;
                    break;
                case 2:
                    this.texture = AkumaContentManager.stoneTex3;
                    break;
                case 3:
                    this.texture = AkumaContentManager.stoneTex4;
                    break;
                default:
                    this.texture = AkumaContentManager.stoneTex;
                    break;
            }

            if (source is Deer)
            {
                Deer deer = (Deer)source;
                location.X = deer.location.X;
                location.Y = currentLevel.levelHeight - texture.Height * scale - 2;
            }
        }
Exemple #2
0
 public void AddTombstone(Creature creature)
 {
     this.tombstones.AddLast(new Tombstone(creature));
 }