コード例 #1
0
 public Game(FormGame form)
 {
     CharPool = new List <Char>();
     Enemies  = new List <Enemy>();
     generatePool();
     TheForm   = form;
     Random    = new Random();
     gameLevel = new GameLevel();
     InitializeCannons();
     graphics                 = TheForm.CreateGraphics();
     TimerSlowMotion          = new Timer();
     TimerSlowMotion.Interval = 1000;
     TimerSlowMotion.Tick    += new EventHandler(TimerSlowMotion_Tick);
     isSlowMotionActive       = false;
     Explosions               = new LinkedList <Explosion>();
     Explosion.InitializeImages();
     TimerExplosionLoop          = new Timer();
     TimerExplosionLoop.Interval = 50;
     TimerExplosionLoop.Tick    += new EventHandler(TimerExplosionLoop_Tick);
     TimerExplosionLoop.Start();
 }