Technical details about the engine credits and the OpenBOR logo appearance

CRxTRDude

Member
For the record:

Speaking of engine's credits, I might make a openborvariant that can be used to detect if these credits go off. That way, you can unload the code while the engine credits are rolling. display_credits, the code that provokes this, is triggered in shutdown first before the video is freed, it's a waste if you have extra resources that you want to free ahead or your background tricks pop out of the credits.

One more thing about display_credits, this only will provoke if the savefile's logo variable is still enabled, just like when you first start a fresh copy of OpenBOR and you see the OpenBOR logo is displayed. If you run OpenBOR 10 times, the savedata.logo var would be set to 0 and the logo and the engine credits would not be displayed.

Just a reminder for people who are curious, like me, about this.
 
That is a nice touch.
Btw, I noticed that sometimes the end credits are buggy, and they are displayed over the last screen (like in the pause screen).
 
That's where a engine credits flag come in. For example, you got the animated title screen and you want to remove it on during the engine credits or show a different screen, you can do that with the engine credits openborvariant. I'm actually implementing it now and it's working (my very first edit in the main logic code!), but I don't know if the people would approve, since the credits only appears while savedata.logo is still 0, which will not be when the engine is played for 10 times.  :(
 
Okay, I'll commit this to our code now.  :) Just adding the flag, not editing any major like removing the credits, the credits in fact is modified a little ... I will also add some notes in the android ports
 
-Android port 1.3.3 - Added wakelock release flag purportedly on the entry point to the code. Added notes on the Assets hack.
-Added 'in_enginecredits' openborvariant, this detects if the engine's credits is displayed, but placed the variables for it in the shutdown command so that it can be called for even if the credits is not displayed.

Illu, now that it's on the code included, please put this openborvariant in the variant index.  ;)

EDIT: Sorry, it's not in_enginecredits, it's in_enginecreditsscreen, my mistake
 
Back
Top Bottom