zlsa / atc

https://openscope.co/
342 stars 107 forks source link

Create offline.manifest (for offline play) #674

Closed avdg closed 7 years ago

avdg commented 8 years ago

This should enable offline play, which was being suggested in #669.

The files in the offline manifest are generated from static files. It won't include generated files. This means that those files won't be available offline. The game is playable offline though.

avdg commented 8 years ago

Demo: https://avdg.github.io/atc/ (after files are loaded (in chrome it shows warning in console), cut internet connection, reload page) Manifest generated: https://avdg.github.io/atc/offline.manifest

avdg commented 8 years ago

Hmm.. seems that this feature should be overridden by service workers, although the manifest should probably still be used as fallback feature because of "old browsers" and given that not all browsers have implemented this.

avdg commented 7 years ago

I might be informed better about service workers after seeing this video: https://www.youtube.com/watch?v=cmGr0RszHc8

Still need to dig through a lot of documentation as the feature seems to be quite large.