예제 #1
0
 public void Draw(Sfg.RenderTarget target, Sfg.RenderStates states)
 {
     _score.DisplayedString = $"Score: {_gameplayState.Score}";
     target.Draw(_background);
     target.Draw(new WorldView(_gameplayState.World));
     target.Draw(new TerminoView(_gameplayState.World.CurrentPiece));
     target.Draw(_score);
 }
예제 #2
0
 public void Draw(Sfg.RenderTarget target, Sfg.RenderStates states)
 {
     target.Draw(_background);
     foreach (var view in _views)
     {
         target.Draw(view, states);
     }
 }
예제 #3
0
 public void Draw(Sfg.RenderTarget target, Sfg.RenderStates states)
 {
     target.Draw(_score, states);
 }