예제 #1
0
        private void Form2_Load(object sender, EventArgs e)
        {
            // add coins
            this.Controls.Add(coins.picBoxCoins);

            // add heart
            this.Controls.Add(heart.picBoxHearts);


            //// add rocket

            this.Controls.Add(rocket.picBoxEmergency);
            this.Controls.Add(rocket.picBoxFire);

            // add gift
            this.Controls.Add(gift.picBoxGift);
            this.Controls.Add(gift.picBoxThunder);


            pipe.DrawPipe(this, pipe);
            ////items.DrawCoins();


            timer_Bird.Interval = 25;
            timer_Bird.Tick    += Timer_Bird_Tick;

            timer2.Interval = 70;
            timer2.Tick    += Timer2_Tick;
        }
예제 #2
0
        private void Form2_Load(object sender, EventArgs e)
        {
            //// add pipe
            //this.Controls.Add(pipe.picBoxPipeAbove1);
            //this.Controls.Add(pipe.picBoxPipeAbove2);
            //this.Controls.Add(pipe.picBoxPipeBottom1);
            //this.Controls.Add(pipe.picBoxPipeBottom2);

            //// add bird
            //this.Controls.Add(bird.picBoxBird);

            //// add items
            //this.Controls.Add(coins.picBoxCoins);

            //// add heart
            //this.Controls.Add(heart.picBoxHearts);

            //// add lifespan
            //this.Controls.Add(lifeSpan.picBoxLifeSpan1);
            //this.Controls.Add(lifeSpan.picBoxLifeSpan2);
            //this.Controls.Add(lifeSpan.picBoxLifeSpan3);

            //// add shield character
            //this.Controls.Add(lifeSpan.picBoxShieldCharacter);

            //// add rocket
            //this.Controls.Add(rocket.picBoxRocket);
            //this.Controls.Add(rocket.picBoxEmergency);
            //this.Controls.Add(rocket.picBoxFire);

            //// add gift
            //this.Controls.Add(gift.picBoxGift);
            //this.Controls.Add(gift.picBoxThunder);


            pipe.DrawPipe(this, pipe);
            ////items.DrawCoins();



            gameLoop = new GameLoop();

            timer_Bird.Interval = 25;
            timer_Bird.Tick    += Timer_Bird_Tick;



            timer2.Interval = 70;
            timer2.Tick    += Timer2_Tick;
        }