Example #1
0
 public Game(FormGame form)
 {
     CharPool = new List<Char>();
     Enemies = new List<Enemy>();
     generatePool();
     TheForm = form;
     random = new Random();
     gameLevel = new GameLevel();
     InitializeCannons();
     SoundCollection = new SoundCollection();
     TimerStrike = new Timer();
     TimerStrike.Interval = 100;
     TimerStrike.Tick += new EventHandler(TimerStrike_Tick);
 }
Example #2
0
 public Game(FormGame form)
 {
     CharPool = new List <Char>();
     Enemies  = new List <Enemy>();
     generatePool();
     TheForm   = form;
     random    = new Random();
     gameLevel = new GameLevel();
     InitializeCannons();
     SoundCollection      = new SoundCollection();
     TimerStrike          = new Timer();
     TimerStrike.Interval = 100;
     TimerStrike.Tick    += new EventHandler(TimerStrike_Tick);
 }
Example #3
0
 private void btnPlay_Click(object sender, EventArgs e)
 {
     FormGame fg = new FormGame(this);
     fg.Show();
     this.Hide();
 }