Beispiel #1
0
        public Form1()
        {
            InitializeComponent();
            StartWindow();
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
            this.DoubleBuffered = true;
            this.gameStarted = false;

            Bullets = new BulletsDoc();
            Houses = new HousesDoc(this.Width);
            Kids = new KidsDoc();
            Clouds = new CloudsDoc(this.Width, this.Height);
            Music = new Sounds();
            Levels = new LevelsDoc();
            CurrentLevel = new List<Kid>();
            CarItems = new CarDoc();
            Players = new PlayersDoc();
            KidsKilled = 0;
        }
Beispiel #2
0
 private void showMainMenu()
 {
     timerNewHouse.Stop();
     Kids = new KidsDoc();
     Houses = new HousesDoc(this.Width);
     Levels = new LevelsDoc();
     Clouds = new CloudsDoc(this.Width, this.Height);
     Bullets = new BulletsDoc();
     showButtons();
     CarItems.MoveToStart();
     gameStarted = false;
     StartWindow();
 }