herebefrogs / forex-hockey

A 2-player, multitouch game mashup of Air Hockey, Hungry Hungry Hippo and OANDA Forex rates where the winning player is congratulated by former OANDA CEO K Duker in person. Best enjoyed on iPad. Initially developed in 24 hours during OANDA's December 2013 hackathon.
http://herebefrogs.com/forex-hockey/
MIT License
2 stars 0 forks source link

game screen: offline mode #10

Open herebefrogs opened 10 years ago

herebefrogs commented 10 years ago

application cache fallback to current random puck generation algorithm when offline

herebefrogs commented 10 years ago

Adding a cache manifest triggers the following error on Mobile Safari (iPhone/iPad) when SoundJS register the sound (only in an optimized build aka scripts bundled by concat/requirejs): SyntaxError: DOM Exception 12: An invalid or illegal string was specified.

On line 1 of createjs.Sound.handleLoad(), this.request.response passed to this.owner.context.decodeAudioData() is undefined. Moreover, this.request.responseText is [DOM Exception]. It is unclear what the invalid or illegal string is and in what context it appears.

Commit reverted for now.