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 proca

I'm unsure how to go about creating a 'scene' where the user can interact but isn't technically a part of the game. Like a menu, such as an in-game store. Is there anything built into the framework to support this?

1 decade ago by end3r

You can create a separate Game entity:

MyStore = ig.Game.extend({ ... });

and just switch between them:

ig.system.setGame(MyStore);

Then you can create a menu, the actual game, the store etc and use (for example) a button click to switch one to another.

1 decade ago by Joncom

If you would like to you can pause your game and then spawn a menu entity.

1 decade ago by proca

Thanks ender, that's very helpful.
Page 1 of 1
« first « previous next › last »