A client has asked me to make the game we’re creating controllable by http requests. That may sound like a bad idea, but it’s for research purposes.
Is there a better option than either of these?
- Define the core game in the first level, and create a second level that will be lazily-loaded, whose content is a serialization of the commands to be performed, and which doesn’t complete until the game is exited.
- Have a script that polls for commands, executes them, and continues polling.
To be honest it sounds remarkably like the OP wants to stop the user skipping the ads. I'm not even sure why users would need to resort to closing and opening the OP's app to get past the ads in the first place unless they couldn't close them any other way.
– PeteD