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

6 years 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?

6 years ago by dominic

Quote from zachstronaut
However, the call is actually ejecta.include() not require.

Thank you; fixed it.

Quote from zachstronaut
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?

Unfortunately, this seems to be a bug that was introduced in XCode5. XCode4 properly noticed the changed source files, but XCode5 does not. This also seems to happen more often when you switch from emulator to real device or vice versa.

Your best bet is to clean your build before compiling: Product ยป Clean

If you find another way, please let me know :)
Page 1 of 1
« first « previous next › last »