public async ValueTask Draw(CanvasWrapper canvas) { await _maze.Draw(canvas); await _pacman.Draw(canvas); await _ghostCollection.DrawAll(canvas); await canvas.DrawMyText("GAME OVER", TextPoints.GameOverPoint, Colors.Red); }
public async ValueTask Draw(CanvasWrapper session) { await _maze.Draw(session); await _pacman.Draw(session); if (_step == 0) { await _ghostCollection.DrawAll(session); } }