Esempio n. 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);
 }
Esempio n. 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);
 }