public static void RenderPatternStars(SpriteBatch spriteBatch, GameTime gameTime, GameplayScreen game) { if (currentPatternStars == null && gameTime.TotalGameTime.TotalSeconds > game.stats.gameStartTime + 1.0) { //lastShownGameTime = gameTime.TotalGameTime.TotalSeconds; currentPatternStars = new PatternStars(IntToPattern(currentPatternInteger), game, 5.0); currentPatternInteger = (currentPatternInteger + 1) % (int)(Pattern.lastPattern); } if (currentPatternStars != null) { currentPatternStars.draw(spriteBatch); } }
public static void ResetAllPatternStars() { if (currentPatternStars != null) { currentPatternStars.ResetAllStars(); currentPatternStars = null; } }
public static void UpdatePatternStars(GameTime gameTime) { if (currentPatternStars != null) { currentPatternStars.Update(gameTime); if (currentPatternStars.FExpiredTime()) { currentPatternStars = null; } } }