void checkScore() { if (rowsDeleted >= gameType.RowsToAdvance) { rowsDeleted = 0; level++; if (dropCounter.Interval - 5 > gameType.MaxSpeed) { dropCounter.increaseInterval(-5); } dropCounter.reset(); if (gameType.ScoreValue == ScoreValue.score) { hud.displayText("Next Level", "Next Level", new Vector2(60, 140), Color.Yellow); } else { hud.displayText("Next Level", "Speeding Up!", new Vector2(60, 140), Color.Yellow); } } }
protected virtual void checkScore() { if (rowsDeleted >= data.RowsToAdvance) { rowsDeleted = 0; level++; if (fallCounter.Interval - 5 > data.MaxSpeed) { fallCounter.increaseInterval(-5); } fallCounter.reset(); hud.displayText("Next Level", data.LevelUpMessage, new Vector2(60, 140), Color.Yellow); } }