1 decade ago by MatthewHarmon
Hi folks:
Seasoned game dev, but new to Impact and JavaScript.
I need our game to be launched from another person's code. I did the following to defer the initialization of our game, but I'm not sure it is the recommended way:
Similarly, I need to exit the game loop and return to my caller. What is the correct procedure to do this?
Thanks!
Seasoned game dev, but new to Impact and JavaScript.
I need our game to be launched from another person's code. I did the following to defer the initialization of our game, but I'm not sure it is the recommended way:
launch: function() { // need to load modules so we have "MyGame" ready ig._execModules(); ig.main('#canvas', MyGame, 30, 1024, 768, 1); }
Similarly, I need to exit the game loop and return to my caller. What is the correct procedure to do this?
Thanks!