Example #1
0
        // Main form
        public FrmMainMenu()
        {
            InitializeComponent();

            _music = Music.Init();
            _sound = SfxSound.Init();

            // load settings
            LoadSave ls = LoadSave.Init();

            ls.LoadSettings();

            // Intro

            // set bullets pBoxes array
            _bullets    = new PictureBox[10];
            _bullets[0] = this.pBoxBullet1;
            _bullets[1] = this.pBoxBullet2;
            _bullets[2] = this.pBoxBullet3;
            _bullets[3] = this.pBoxBullet4;
            _bullets[4] = this.pBoxBullet5;
            _bullets[5] = this.pBoxBullet6;
            _bullets[6] = this.pBoxBullet7;
            _bullets[7] = this.pBoxBullet8;
            _bullets[8] = this.pBoxBullet9;
            _bullets[9] = this.pBoxBullet10;

            _counter     = 0;
            _introActive = true;
        }
Example #2
0
 // CONSTR.
 public Character()
 {
     // components
     _sound = SfxSound.Init();
 }