Esempio n. 1
0
        public override void update(GameTime gameTime)
        {
            int collisions = 0;

            if (!down.isActive())
            {
                collisions++;
            }
            if (!middle.isActive())
            {
                collisions++;
            }

            up.goDown(collisions);
            middle.goDown(collisions);

            up.update(gameTime);
            middle.update(gameTime);
            down.update(gameTime);


            if (appearing)
            {
                if (count > 2)
                {
                    appearing = false;
                }

                if (!up.mGrowUp)
                {
                    count++;
                    up.appear();
                }
                if (!down.mGrowUp)
                {
                    count++;
                    down.appear();
                }
                if (!middle.mGrowUp)
                {
                    count++;
                    middle.appear();
                }
            }
        }
Esempio n. 2
0
 public bool isEmpty()
 {
     Game1.print("----------> " + (!up.isActive() && !middle.isActive() && !down.isActive()));
     return(!up.isActive() && !middle.isActive() && !down.isActive());
 }