Hi,
I wonder if I could post a suggestion for a new feature (or fix) for CS2 please? (Or if it already handles this, then this is simply a question about how it's done....!)
Basically, CS2's support of mobile gaming is improving every day, and the recent fixes to the PhoneGap audio support are very welcome. However, there's another side to mobile gaming which is somewhat crucial.... the need to pause the game (and particularly the audio) when an 'interrupting event' occurs on the phone - for example an incoming phone-call, or the user simply 'backing out' of the running game to access some other app.
As far as I can see, currently CS2 games, exported to PG, and run on Android (for example), have their audio and gameplay continuing whenever the user 'pauses' the app or a phone-call comes in. This is problematic enough for various App stores to reject such a game (as it is crucial to deal with phone-call interruptions).
Using PhoneGap it is quite easy to handle these incoming events, but it needs some code in the JS to listen to the events and respond to them, and whilst I could dive into the exported index.html and JS files generated by CS2 and add in some code to manage this.... ideally CS2 would simply handle the events and apply some code to silence the sound effects, and pause the game, whenever one of these events occurs (and restart it all when the user returns).
The PhoneGap docs describe the events here:
docs.phonegap.com/en/1.5.0/phonegap_events_events.md.html
So... (Ashley in particular)... could this be something to add to a new CS build please? (Preferably ASAP... as it's a blocking issue with releasing mobile versions of CS2 games on iPhone/Android etc.)
OR... if I've completely missed an existing feature within CS2 that handles such events, perhaps someone could simply point this numbskull in the right direction? :-)
Thanks! (And my apologies if I've posted this in the wrong section... I'm happy to move it or repost)
Ian