Beispiel #1
0
        public override void Draw()
        {
            fileScene.Draw();

            base.Draw();

            fileScene.DrawTransitions();
        }
Beispiel #2
0
        public override void Draw()
        {
            fileScene.Draw();

            // draw the grid
            for (int row = 0; row < grid.GetLength(0); row++)
            {
                for (int col = 0; col < grid.GetLength(1); col++)
                {
                    int tile = grid[row, col];
                    if (tile == 1)
                    {
                        BaseGame.spriteBatch.Draw(Assets.GoldBlockTop, new Rectangle((col * blockWidth) + gridOffX, (row * blockHeight) + gridOffY, blockWidth, blockHeight), Color.White);
                    }
                }
            }

            State["grid"] = JArray.FromObject(grid);

            base.Draw();

            fileScene.DrawTransitions();
        }