ictwork717.files.wordpress.com€¦  · web viewd2: evaluate the game design and prototype against...

8
D2: Evaluate the game design and prototype against the identified game concept Does it demonstrate all of the list of programming skills you were meant to cover: Variables/constants, strings, inputs, outputs, sequence, selection, iteration (e.g. counting/conditional), subroutines (e.g. functions/procedures), conditions, counting, totalling, data structures (e.g. arrays/lists), file handling, maintainable code, libraries Variable This is the variable for the health of the player. This is assigned to the object of the car (red_carO). This is set to start at 1000 and it decreases as the arrow keys are pressed. This is the code that shows that if the arrow keys are pressed, the variable will be decreased by 1.

Upload: others

Post on 26-Jan-2021

0 views

Category:

Documents


0 download

TRANSCRIPT

D2: Evaluate the game design and prototype against the identified game concept

· Does it demonstrate all of the list of programming skills you were meant to cover:

Variables/constants, strings, inputs, outputs, sequence, selection, iteration (e.g. counting/conditional), subroutines (e.g. functions/procedures), conditions, counting, totalling, data structures (e.g. arrays/lists), file handling, maintainable code, libraries

Variable

This is the code that shows that if the arrow keys are pressed, the variable will be decreased by 1.

This is the variable for the health of the player. This is assigned to the object of the car (red_carO). This is set to start at 1000 and it decreases as the arrow keys are pressed.

Constant

This is the code that tells the program that when the variable = 0, to go to the end screen.

The constant is the value that the variable begins at, which in this case is 1000. Each time the game is launched, the variable will always begin at 1000.

Iteration/counting

The sprite changes frame each second to count how long the game has been running for. Another thing which is counted is the health. This starts at 1000 and decreases each time the arrows are pressed and once it reaches 0, the game displays the end screen.

Sequence

Once a level is selected, the game is told to go to a certain screen. For example, if the medium level was selected the game would then open the medium level. Once this level has been completed or the player has run out of health, a finish screen will then be displayed.

Strings

The variable is titled “health” but the game does not know what this actually means, it just displays it when it has been told to. The game doesn’t need to understand this as all it does is display this with the variable.