Code the Classics Volume I by unknow

Code the Classics Volume I by unknow

Author:unknow
Language: eng
Format: epub
Publisher: Raspberry Pi Press


Making waves

At the start of the game, or each time the player has destroyed all myriapod segments, a new wave is started. This occurs in the Game.update method. The first thing that happens is that rocks are randomly created throughout the level. Although we could create them all in one go, it’s more aesthetically pleasing to create one per frame until we have the desired number. Once we have enough rocks (a number that increases each wave), we move on to creating the myriapod itself. Initially we create eight segments per myriapod, but every four waves this number increases by two. The segments are created just off the top left corner of the screen. In the first wave, we create a basic myriapod where each segment takes one hit to kill. On the second wave, every other segment takes two hits to kill. On the third, all segments take two hits. On the fourth, the segments take only one hit, but they move twice as fast. This sequence then repeats, but with a longer myriapod.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.