Skip to content
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

Adding an image to the preloading screen? #60

Open
Digital-Odyssey opened this issue Jan 26, 2018 · 3 comments
Open

Adding an image to the preloading screen? #60

Digital-Odyssey opened this issue Jan 26, 2018 · 3 comments

Comments

@Digital-Odyssey
Copy link

Hi,

What would be the best approach to displaying a logo image and the loading bar during the preloader screen?

@kittykatattack
Copy link
Owner

You would do that in the load function, as in this example:

https://github.com/kittykatattack/hexi/blob/master/examples/src/quickStart.js

Anything you drop in that load function will be visible during the loading state.

@Digital-Odyssey
Copy link
Author

Ok thanks but i ran into an issue. If i load an image within the load function and i can't find a way to remove it in the setup function.

Any suggestions?

@Digital-Odyssey
Copy link
Author

Sorry to bother you with this again but i finally got around to finishing my game and i just need to get the preloader image removed after the loading is completed.

You can play my game here to see the issue: http://evilhexapod.com/games/the-last-battle/
and you can view the code here: http://evilhexapod.com/games/the-last-battle/bin/game.js

Any help is appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants