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.