kittykatattack / hexi

Make games the fun way!
MIT License
554 stars 83 forks source link

Adding an image to the preloading screen? #60

Open Digital-Odyssey opened 6 years ago

Digital-Odyssey commented 6 years ago

Hi,

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

kittykatattack commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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.