public SkypieaGame() { base.ClearColor = Color.Black; this.Components.Add(new DebugInformationComponent(this.Services) { DisplayPosition = new Vector2(9, 144), DebugInformationLevel = DebugInformationLevel.All, Visible = false }); _serviceContainer.Add(_settingsManager = SettingsHelper.CreateSettingsManager()); _serviceContainer.Add(HighscoreHelper.CreateHighscoreManager()); _serviceContainer.Add(StatsHelper.CreateStatsManager()); _serviceContainer.Add(_scoreloopManager = LeaderboardHelper.CreateLeaderboardManager()); }
public OptionsScreen() { this.TransitionOnTime = TimeSpan.FromSeconds(0.5f); this.TransitionOffTime = TimeSpan.FromSeconds(0.5f); this.FadeType = FadeType.FadeAlpha; this.FadeIn = FadeDirection.Up; this.FadeOut = FadeDirection.Up; _settingsManager = FlaiGame.Current.Services.Get<SkypieaSettingsManager>(); _scoreloopManager = FlaiGame.Current.Services.Get<ScoreloopManager>(); }