ABSTRACT

Introduction to Design and Programming of an Application The main objective of this chapter is to put everything you have learned into building a game with

the support of a step-by-step breakdown and explanations of all the code. The game is available

from www.sprite.net/understanding and is made up of a simple syntax:

The Game Loop A game can be decomposed into five processes that continually run into a loop. It is a basic

formula that almost every game has to have. The game loop is a series of processes for getting input

from and displaying output to the user and updating the game. The five basic processes are:

1. The Introduction – The start screen has an animation sequence that shows off some

aspect of the game’s story or background and a start button to play the game or to change

various parameters that affect the game in some way. The parameters include sound

volume, graphic options, difficulty and starting level.