Example #1
0
        private void MultiGameForm_Paint(object sender, PaintEventArgs e)
        {
            for (int x = bgOffset; x < 1200; x += 400)
            {
                e.Graphics.DrawImage(backGround, x, 0, 400, 700);
            }

            e.Graphics.DrawImage(pan.ResizeBitmap, 10, 10);

            if (kirbyTag == 0)
            {
                kirby1.draw(e.Graphics);
                kirby2.draw(e.Graphics);
            }
            else if (kirbyTag == 1)
            {
                kirbyS1.draw(e.Graphics);
                kirbyS2.draw(e.Graphics);

                if (drawCount >= 16)
                {
                    kirbyTag  = 0;
                    drawCount = 0;
                }
            }
        }
Example #2
0
        private void MainForm_Paint(object sender, PaintEventArgs e)
        {
            for (int x = bgOffset; x < 900; x += 400)
            {
                e.Graphics.DrawImage(backGround, x, 0, 400, 700);
            }

            kurbi.draw(e.Graphics);
        }