-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Logos at Startup #3096
Custom Logos at Startup #3096
Conversation
You must add images named LOGO0, LOGO1, LOGO2, LOGOn to the Font folder. it will stop showing logos whenever it fails to find a file. Update scene_logo.cpp
208081e
to
d8ced11
Compare
Also for discussion: Is |
d8ced11
to
541751b
Compare
- Add custom functions preloadLogos() and DetectGame() to keep it easy to read and maintain. - DetectGame() only happens after loading the Default EasyRPG logo. This happens to avoid a blank screen while loading game assets, as suggested by @Ghabry - Disable the shift key behavior when not at LOGO0. - Fix webplayer issue by adding the prefix ` Scene_Logo::` to the new functions. ------------------------ I guess this solves the issues? Lemme know if you guys need anything else.
541751b
to
f4bea09
Compare
Better for reading and organization.
I guess this last change ensures that the logo can be shown.
Add support for emscripten
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I rewrote the logo loading logic to always only load one logo and I got rid of global state. The remaining technique (such as invoking another logo scene) remained the same.
Is now much faster when loading 200 logos :P. There is no upper limit.
Thanks! When I use the flag --new-game with the 200+ logo collection, it gets stuck at the logos screen for some time. Could a skip after the first be added in this specific case? |
Right. The same will happen when running in test game mode. Will add a fix. |
The engine objects are created by then so this is safe
The logos are now correctly skipped when |
how about a custom video at startup? |
At this point, you could probably skip the title screen in your game and manually create a video on your side when starting the game, it would probably be better to do it this way. |
To add custom logos, you need to add image files named LOGO1, LOGO2, LOGO3, LOGO
n
to the Font folder.It will always load the next logo file, while sequential files exist in the Font folder.
You can skip having LOGO0, it loads default easyRPG logo when LOGO0 doesn't exists.EasyRPG logo is always displayed at bootup, to avoid a blank screen while loading a heavy game.
Some reference files for testing: