VISUAL C# .NET: A Step By Step, Project-Based Guide to Develop Desktop Applications by Siahaan Vivian & Sianipar Rismon Hasiholan

VISUAL C# .NET: A Step By Step, Project-Based Guide to Develop Desktop Applications by Siahaan Vivian & Sianipar Rismon Hasiholan

Author:Siahaan, Vivian & Sianipar, Rismon Hasiholan [Siahaan, Vivian]
Language: eng
Format: epub
Publisher: BALIGE PUBLISHING
Published: 2020-08-19T16:00:00+00:00


DisplayTimeScore();

//Man

ManW = picMan.Width;

ManH = picMan.Height;

ManDeltaX = 10;

ManX = 375;

ManY = pnlGame.Height - ManH;

PanelGame.DrawImage(picMan.Image, ManX, ManY);

//Bird

BirdW = picBird.Width;

BirdH = picBird.Height;

//Ball

BallW = picBall.Width + 10;

BallH = picBall.Height;

PlaceBirdAndBall();

}

Step 11

The code in Step 10 uses a separate subroutine ( PlaceBirdAndBall ) to randomly position the bird and the ball on the screen. Add this subroutine to your program:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.