varkor / pokengine

An online Pokémon battle system for the web
http://varkor.com/pokengine/battle/
MIT License
54 stars 11 forks source link

Preload all resources necessary for the battle #159

Open varkor opened 9 years ago

varkor commented 9 years ago

There is currently a flash of undisplayed Pokémon when it Mega Evolves, as the sprite hasn't been loaded yet. Both its sprite and its cry should be preloaded before battle. Additionally, the same should be done for both different form(e)s of each Pokémon, as well as various filters, such as the shiny filter.

varkor commented 9 years ago

Preloading of normal sprites has been disabled for now too, due to an earlier bug. This needs to be addressed at the same time as the Mega Evolution sprites, etc.