Pages

Monday, 14 November 2016

Advancing our Game further

Previous: Complete C# code
We learn the basics of working with unity. The game developed so far is a skeleton game. Only one box dropped and collected.

What we know:
Story line:
The game involves some boxes that drop from above
and the player is required to collect the boxes. At the end of the game.
the player should be able to tell how many boxes we generate and how
many s/he managed to collect.

What we have done so far:
Dropped a box and collect it and, display the number of box collected . To further our game, we need to drop more boxes and collect them. This will enable us display the total boxes generated. We need to advance our story line:

Updated Story line:
The game involves some boxes that drop from above
and the player is required to collect the boxes.The boxes drop from any point above the catch up box. We move the catch up box to collect the boxes on left or right. No box should fall down. At the end of the game.
the player should be able to tell how many boxes we generate and how
many s/he managed to collect.

The new story line provides:

We generate the boxes randomly.

Move catch up box right or left. This now defines the player.

Display the boxes lost.

Display total boxes dropped

To break the game, we advance our code to move the catch up box, then generate more boxes before displaying our score. We then need to redefine our pseudo code to reflect the new changes