Example #1
0
        public void AddLetter(int width, int height)
        {
            LetterCircle lc = new LetterCircle(random, width, height);

            Count[lc.Letter - 'A']++;
            Letters.Add(lc);
        }
Example #2
0
        public void Move()
        {
            foreach (LetterCircle lc in Letters)
            {
                lc.Move();
            }

            for (int i = Letters.Count - 1; i >= 0; --i)
            {
                LetterCircle l = Letters[i];
                if (l.ShouldDie())
                {
                    Misses++;
                    Letters.RemoveAt(i);
                }
                else
                if (l.IsHit)
                {
                    Letters.RemoveAt(i);
                }
            }
        }