jonoxia / platform-game

untitled HTML 5 side-scroller
14 stars 5 forks source link

Display progress bar when loading level #40

Closed jonoxia closed 12 years ago

jonoxia commented 13 years ago

As levels get more complex and include assets from more different URLs, they will take longer to load. Need to show player something is happening so they know page isn't frozen.

Implementation-wise, I want basically a basket that I can just throw lots of URLs into, and it will load all of them while updating a progress bar, and then notify the main game loop to start once all assets are loaded.

jonoxia commented 12 years ago

Done in https://github.com/jonoxia/platform-game/commit/492abb5c30d39eaa2d01ef1163d1a591b8eec1bc https://github.com/jonoxia/platform-game/commit/2404dab6d90cda62cc11fd20a493ae5c9f4fb562 and https://github.com/jonoxia/platform-game/commit/492abb5c30d39eaa2d01ef1163d1a591b8eec1bc