1 decade ago by zachstronaut
Dominic,
Right now the Ejecta page about Impact says to use the following lines in index.js:
// Load the game
ejecta.require('lib/impact/impact.js');
ejecta.require('lib/game/main.js');
http://impactjs.com/ejecta/integrating-impact-games
However, the call is actually ejecta.include() not require.
Also, it seems that in Xcode any updated impact/game files do not make it into the Simulator build unless index.js has changed, too. It is like the app build caches all the old files until you make any change (like adding a space) to index.js. Is that normal?
Right now the Ejecta page about Impact says to use the following lines in index.js:
// Load the game
ejecta.require('lib/impact/impact.js');
ejecta.require('lib/game/main.js');
http://impactjs.com/ejecta/integrating-impact-games
However, the call is actually ejecta.include() not require.
Also, it seems that in Xcode any updated impact/game files do not make it into the Simulator build unless index.js has changed, too. It is like the app build caches all the old files until you make any change (like adding a space) to index.js. Is that normal?