public void RenderScence(SimpleGame.IDataModel model) { var m = model as SnakeGameModel; this.ClearObjects(); this.RenderSnake(m.Snake); this.RenderFood(m.Food); }
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); }