SlideShare a Scribd company logo
1 of 1
Download to read offline
Game Loop
!
The cycle Input - Update - Output. The user uses an external device to submit a command into
the computer which is referred too as an input. The program analyses this change and it
updates, it then sends an output to the user (which is normally the display).
!
The game loop for Pong would be like this: The game loop for Achilles would be like this:
!
!
!
!
!
!
Input:
The user uses a keyboard to
control Achilles: left, right, jump
or double jump.
Update:
If the ball moves into the
paddle it will rebound to
either the wall or the other
paddle, if it doesn’t the ball
with spawn again and the
other team gets a point.
!
Output:
If the other team scores the
screen will show the ball
spawning in the middle and
the score board changing the
score of one of the teams. If
the ball rebounds of the
paddle then it will show the
deflection.
Input:
The user uses a keyboard to
control the paddle to make it
go up and down along the Y
axis.
Update:
Achilles will move and meet a
Minotaur, if he jumps over it
successfully he will climb up to
the other level, if he doesn’t the
game will restart.
Output:
You will see Achilles move left,
right and you will see him jump
and double jump. If he dies
then the game restart, if not the
output will continuously show
Achille’s in the level.

More Related Content

More from James Buckmaster (20)

Marketing plan pdf
Marketing plan pdfMarketing plan pdf
Marketing plan pdf
 
Futher study pdf
Futher study pdfFuther study pdf
Futher study pdf
 
Unit1 pdf
Unit1 pdfUnit1 pdf
Unit1 pdf
 
Unit 7: Graphics Design
Unit 7: Graphics DesignUnit 7: Graphics Design
Unit 7: Graphics Design
 
Cartoons pdf
Cartoons pdfCartoons pdf
Cartoons pdf
 
Legal and ehtical marketing pdf
Legal and ehtical marketing pdf Legal and ehtical marketing pdf
Legal and ehtical marketing pdf
 
Graphics evaluation pdf
Graphics evaluation pdf Graphics evaluation pdf
Graphics evaluation pdf
 
Wallpapers pdf
Wallpapers pdf Wallpapers pdf
Wallpapers pdf
 
Graphic design banner presentation pdf
Graphic design banner presentation pdfGraphic design banner presentation pdf
Graphic design banner presentation pdf
 
Presentation icon pdf
Presentation icon pdfPresentation icon pdf
Presentation icon pdf
 
Fitness for purpose final pdf
Fitness for purpose final pdfFitness for purpose final pdf
Fitness for purpose final pdf
 
Photographer comparison pdf
Photographer comparison pdfPhotographer comparison pdf
Photographer comparison pdf
 
Fitness for purpose pdf
Fitness for purpose pdfFitness for purpose pdf
Fitness for purpose pdf
 
Final image 1 pdf
Final image 1 pdfFinal image 1 pdf
Final image 1 pdf
 
Legal and ethical pdf
Legal and ethical pdfLegal and ethical pdf
Legal and ethical pdf
 
Total film flat plan pdf
Total film flat plan pdfTotal film flat plan pdf
Total film flat plan pdf
 
Photography contact
Photography contactPhotography contact
Photography contact
 
Annotated sheet 3 pdf
Annotated sheet 3 pdfAnnotated sheet 3 pdf
Annotated sheet 3 pdf
 
Annotated sheet 2 pdf
Annotated sheet 2 pdfAnnotated sheet 2 pdf
Annotated sheet 2 pdf
 
Annotated sheet 1 pdf
Annotated sheet 1 pdfAnnotated sheet 1 pdf
Annotated sheet 1 pdf
 

Game loop pdf

  • 1. Game Loop ! The cycle Input - Update - Output. The user uses an external device to submit a command into the computer which is referred too as an input. The program analyses this change and it updates, it then sends an output to the user (which is normally the display). ! The game loop for Pong would be like this: The game loop for Achilles would be like this: ! ! ! ! ! ! Input: The user uses a keyboard to control Achilles: left, right, jump or double jump. Update: If the ball moves into the paddle it will rebound to either the wall or the other paddle, if it doesn’t the ball with spawn again and the other team gets a point. ! Output: If the other team scores the screen will show the ball spawning in the middle and the score board changing the score of one of the teams. If the ball rebounds of the paddle then it will show the deflection. Input: The user uses a keyboard to control the paddle to make it go up and down along the Y axis. Update: Achilles will move and meet a Minotaur, if he jumps over it successfully he will climb up to the other level, if he doesn’t the game will restart. Output: You will see Achilles move left, right and you will see him jump and double jump. If he dies then the game restart, if not the output will continuously show Achille’s in the level.