/// <summary> /// Initializes a new instance of the <see cref="TopTenComponent"/> class. /// </summary> /// <param name="game">game reference object.</param> public TopTenComponent(EverLite game) : base(game) { this.game = game; this.volume = VolumeManager.Instance; this.sound = SoundManager.Instance; }
/// <summary> /// Initializes a new instance of the <see cref="MenuComponent"/> class. /// </summary> /// <param name="game">game reference object.</param> public MenuComponent(EverLite game, MenuItemsComponent menuItems) : base(game) { this.game = game; this.menuItems = menuItems; this.volume = VolumeManager.Instance; this.sound = SoundManager.Instance; }
public PlayerMovementManager(Player player, Rectangle bounds) { this.playerSettings = PlayerSettings.Instance; this.playerRef = player; this.bounds = bounds; this.playerRef.Position = this.SpawnPoint; this.sound = SoundManager.Instance; this.volume = VolumeManager.Instance; this.playerRef.OnCollide += (sender, e) => { this.sound.Explosion1.Play(volume: volume.SoundLevel, pitch: 0.0f, pan: 0.0f); this.playerRef.Position = this.SpawnPoint; }; }
/// <summary> /// Initializes a new instance of the <see cref="SidePanelComponent"/> class. /// </summary> /// <param name="game">game reference object.</param> public SidePanelComponent(EverLite game) : base(game) { this.game = game; this.playerSettings = PlayerSettings.Instance; this.sidePanel = this.game.Content.Load <Texture2D>(@"Sprites\background_narrowspace"); this.highScore = new HighScore { Id = 0, Name = "AAA", Score = 0 }; this.volume = VolumeManager.Instance; }
/// <summary> /// Initializes a new instance of the <see cref="GameWonComponent"/> class. /// </summary> /// <param name="game">game reference object.</param> public GameWonComponent(EverLite game) : base(game) { this.game = game; this.alphabet1 = this.alphabet2 = this.alphabet3 = new List <string> { "A", "B", "C", "D", "E", "F", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "!", "@", "#", "$" }; this.itemColor = Color.Red; this.selectedItemColor = Color.Yellow; this.letter1 = this.letter2 = this.letter3 = "A"; this.listName = ListName.letters1; this.volume = VolumeManager.Instance; this.sound = SoundManager.Instance; }
/// <summary> /// Initializes a new instance of the <see cref="PlayerSettingsComponent"/> class. /// </summary> /// <param name="game">game reference object.</param> public PlayerSettingsComponent(EverLite game) : base(game) { this.game = game; this.playerSettings = PlayerSettings.Instance; this.volume = VolumeManager.Instance; this.sound = SoundManager.Instance; this.controlList = new List <string> { "Move Up:", "Move Left:", "Move Down:", "Move Right:", "Shoot:", "Use Bomb:", "Slow Down:", "Change Weapon:", "Pause:" }; this.itemColor = Color.Red; this.selectedItemColor = Color.Yellow; this.selectedControl = "Move Up:"; }
public Health(int health) { this.totalHealth = this.currentHealth = health; this.sound = SoundManager.Instance; this.volume = VolumeManager.Instance; }