This week my Milestone was to create a start menu, have it lead into the game, and add a trigger at the end of the track which lads to a game over screen.
Creating a menu turned out to be much easier than expected. I used the remainder of my allotted work hours to complete a few different objectives.
I experimented with particle systems for future use in power ups. I made it so the fire over the menu icons fades away when you mouse over them. Below is the code and an example picture
I set up a small animation where a set of car are continually flung off a ramp. I could not discover a way to reset the cars to their original state. When I reset the position of the c.ars manually, they stopped moving despite the fact the engines were running and the wheels were turning. I solved this problem by quickly deactivating and reactivating the game objects. The reset cars go back to their starting position off screen and it gives the illusion that the cars are completing laps in a race. You can see a few cars flying by in the above picture. Code below.
Added a GUI timer to the start of the race where it will count down to 10 before the engines start and the race begins. This took longer than it should have
Lastly we have the game over screen. Looks kinda cheesy, but it will get the job done for now.
.
No comments:
Post a Comment