Пример #1
0
        public void RenderScence(SimpleGame.IDataModel model)
        {
            var m = model as SnakeGameModel;

            this.ClearObjects();
            this.RenderSnake(m.Snake);
            this.RenderFood(m.Food);
        }
Пример #2
0
        public void RenderScence(SimpleGame.IDataModel model)
        {
            var m = model as TetrisGameModel;

            var data          = m.GetUnderlyingData();
            var spareTireData = m.GetUnderlyingDataSpareTire(5, 5);

            this.tetrominoChest2.SetTetrominos(spareTireData);
            this.tetrominoChest1.SetTetrominos(data);
        }