Ejemplo n.º 1
0
        protected override void ResetGame()
        {
            turn ^= true;

            for (int x = 0; x < w; x++)
            {
                for (int y = 0; y < h; y++)
                {
                    if (pieces[x, y] != null)
                    {
                        animations.Add(new FallAnim(pieces[x, y].GetTexture,
                                                    new Vector2(x, y) + Vector2.One / 2,
                                                    null,
                                                    null,
                                                    0.05f,
                                                    0.5f,
                                                    0,
                                                    0f,
                                                    15));
                    }

                    pieces[x, y] = null;
                }
            }
        }