1 decade ago
by dmen
Can I calll a method within an Impact class from Index.htm? I have JavaScript for Node.js on my index page, and need to call a method within the game engine. I'm thinking it's just JS so I can just do it, but want to be sure. Tried one thing and it didn't work...
Of course... just reference it from ig.game
. For example ig.game.update()
is the update method specified in main.js. You can also access any of the properties of your game. For example ig.game.entities
will be the array of entities currently spawned.
This can be especially useful when you use the Javascript Console for debugging.
1 decade ago
by dmen
Of course! Works perfect. Thanks much.
Page 1 of 1
« first
« previous
next ›
last »