Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by PartTimeJohnny

Anyone have a strategy to reset the instance of ig?

I have an external lobby (in php / html) and I want players to be able to start an instance of a game (in canvas / impact), take a turn, return to the lobby, and start a new instance of a game.

Effectively bounce between php and impact. On returning to impact, create a new instance of ig. I guess my question boils down to: has anyone reset their game by destroying ig and creating a new instance from php/html?

Other strategies or advice are most welcome.

Thanks in advance.

1 decade ago by dominic

You can call ig.system.setGame() with your Game class again to restart it.
Page 1 of 1
« first « previous next › last »