Incoming | Adding some crackle.
The core mechanics of the game are now complete, but we can extend the development to embed what we have learned and create a better game. These extensions are presented in three levels of increasing difficulty we call, 'snap', 'crackle' and 'pop'. You are now on your own, but none of these extensions require you to learn anything new that was not introduced in this or previous tutorials. Challenge yourself to see how far you can get using the stages in the tutorials for reference.
- Always spawn a comet if there are none on the screen.
You learned about scripting factories in stage 4. You may need a variable to keep count of how many comets are currently alive. - Make the comets travel at a random speed.
You will need to change the script in stage 4. Changing the animation speed of the comet is the easiest way to achieve this. You learned about random numbers in stage 4 too. - Add an explosion animation when the comet hits the earth. The explosion should disappear when the animation is complete.
You learned about the atlas and animations in stage 2, creating game objects in stage 3, factories in stage 4 and scripting the end of an animation in stage 5.
Now progress to the next set of challenges. Stage 9 >