Game - UET Taxila

Game Programming
Advanced Computer
Programming
McGraw-Hill Technology Education
Part - 2
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved.
Lecture Objective
• After completing this Lecture:
– Students will be able to understand how the
Brick Avoid Game works
– Will be able to Identify and Use
Components used in this Game
– Will be able to do animations for action
based games
– Will use built-in routines to draw lines,
ellipse, rectangles, and polygons
13A-2
Brick Avoid
The Intro Screen 1
The Intro Screen 2
The Menu Screen
Game Action
End of Game
The Menu Screen
Game Settings
Game High Scores
About Game
Brick Avoid (Images)
Brick
Zhorik
BG
Windows Brick Avoid
Windows Brick Avoid
Windows Brick Avoid
Name: frmBrick
ShowIcon: False
Text: Brick Avoid
Key Preview: True
Windows Brick Avoid
Name: frmBrick
ShowIcon: False
Text: Brick Avoid
Key Preview: True
Windows Brick Avoid
Name: picBG
Dock in parent container
Size Mode: Stretch Image
Image: Intro1.PNG
Windows Brick Avoid
Name: picBG
Dock in parent container
Size Mode: Stretch Image
Image: Intro1.PNG
WaitOnLoad: True
Windows Brick Avoid
Name: picBG
Dock in parent container
Size Mode: Stretch Image
Image: Menu.PNG
Windows Brick Avoid
Name: Button1
Location: 83, 91
Size: 126, 35
Windows Brick Avoid
Name: btnStart
Text: Start Game
Font : Copper Kettle
Font ForeColor : White
BackColor : DarkOrange
Windows Brick Avoid
Name: btnStart
Text: Start Game
Name: btnSettings
Text: Settings
Name: btnHigh
Text: High Score
Name: btnAbout
Text: About
Name: btnQuit
Text: Quit
Font : Copper Kettle
Font ForeColor : White
BackColor : DarkOrange
Visible: False
Windows Brick Avoid
Name: picBrick
Name: picZhorik
Visible: False
The Crash Landing (Components)
• Components Required
– Form
– Picture Boxes
– PNG Images
•
•
•
•
•
Introduction Screens
Background Screen
Endgame Screen
Zhorik’s Picture
Bricks Picture
– Timer Controls
The End
Questions?
McGraw-Hill Technology Education
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved.