The game is inspired by endless runner games such as Temple Run, or subway surfers. The project was aimed to contain mobile game features such as in-game adverts and in-game purchases, so we get a hang of using mobile-friendly features for any future mobile games we develop.
With this project I got more used to the unity editor and object instantiation in C#
The creation of the game helped me understand how important it is to optimize your game especially if you are going to release for mobile; to achieve an infinite road I only have three platforms moving downwards to create the illusion that the main player car is moving forwards when it is actually just staying still in the same coordinates.
The enemy vehicles are attached to the ground road to avoid unneccessary physics calculations. And the road use object pooling to seamlessly create the illusion of an infinite road without continously spawning and deleting objects
To practice some useful game development skills I also decided to learn to produce some music for the game since the game also contains a feature in which the cars "wobble" at a certain configurable speed.
Using a Sine wave I reduced and increased the car height and width at a certain interval to make the wobble effect happen at the beat of the song.
This could then be edited to wobble at different speeds depending on the value you enter