CurryKitten / CurryKitten-Sim

FPV quad simulator
70 stars 7 forks source link

Create Titlescreen/Intro, place first time user into the main menu #44

Closed CurryKitten closed 4 years ago

CurryKitten commented 4 years ago

Something I want to change for the beta is getting a first time player into the main menu. It seems a bit harsh to dump them into the main sim with the default of the expert quad ready to fly. I'll also add an option into the setup screen so a user can choose to start in the menu, or straight into the sim.

CurryKitten commented 4 years ago

This seems like such a minor feature but has cost a weirdly large amount of time. Due to several odd Unity issues. Firstly I was having problems with the transparent layer of a png image for placing these on my bricks to make up an image to smash through - this was resolved by using jpg images instead.

Next, I found that the wall of bricks carefully arranged perfectly on top of each other on a flat base won't just stand up by themselves and end up falling over! I'm still stuck on this and have spent many hours building towers of different types of bricks with different physical material properties and all sorts of things - I still don't get this.

Next I thought the scene transition code was breaking the sim. I put an opening sequence in scene 1 and then got it to load scene 2 - the actual game and we hit a 15fps frame limit - profiling told me the fixed physics loop was taking up exponential amounts of processing time.

Hopwever, scene loading was a red-herring - I was eventually able to track down that although I'd put the timescale back to normal )after my slowmotion effect), the fixed update loop.. which had been modified to provide smoother slow motion, hadn't been restored and thus we were asking to run the sim at 1000fps... not good.

Eventual success though, I show an opening animation with a quad smashing through a brick wall made of the logo

Screenshot 2020-04-20 at 15 10 48

The sim will then start at the Pause menu (which may be renamed the Main menu) but I added an option within the system config and setup menu to start the sim "in-game" i.e not in the menu

Screenshot 2020-04-20 at 15 10 35

The original intention was to select one of several opening scenes at random, but having spent this long on just one, I'll add others in another release or something.