/// <summary> /// загрузка уровня и счетчик очков при уничтожении астеройда /// </summary> /// <param name="A">коллекция астеройдов</param> /// <param name="b">коллекция пули</param> public static void DestroyAstrd(List <Asteroid> A, List <Bullet> b) { _countDestr++; if (_countDestr == A.Count) { Game.Level(); Game.Load(); b.Clear(); } }
static void Main(string[] args) { Form form = new Form(); form.Width = Screen.PrimaryScreen.Bounds.Width; form.Height = Screen.PrimaryScreen.Bounds.Height; Game.Init(form); Game.Load(); form.Show(); Game.Draw(); Application.Run(form); }
static void Main(string[] args) { Form form = new Form { Width = Screen.PrimaryScreen.Bounds.Width, Height = Screen.PrimaryScreen.Bounds.Height, ClientSize = new Size(1000, 1000), }; Game.Init(form); // игра в этой форме form.Show(); Game.Load(); Game.Draw(); Application.Run(form); }
static void Main(string[] args) { Form form = new Form { Width = Screen.PrimaryScreen.Bounds.Width, Height = Screen.PrimaryScreen.Bounds.Height }; Game.Init(form); form.Show(); Game.Load(); Game.Draw(); //Timer timer = new Timer { Interval = 50 }; Game.timer.Start(); Game.timer.Tick += Timer_Tick; Application.Run(form); }