2018-02-27 12:43:58 +01:00
|
|
|
if (this.parentEntity === data.entity) {
|
|
|
|
console.log('Entity Impact Test Loaded');
|
|
|
|
} else {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2018-02-27 13:41:53 +01:00
|
|
|
ig.module(
|
|
|
|
'game.impact-test'
|
|
|
|
)
|
|
|
|
.requires(
|
|
|
|
'impact.game',
|
|
|
|
'impact.image'
|
|
|
|
)
|
|
|
|
.defines(function(){
|
|
|
|
|
|
|
|
// code for this module
|
|
|
|
|
|
|
|
// Create your own game class
|
|
|
|
MyGame = ig.Game.extend({
|
|
|
|
init: function() {
|
|
|
|
// initialize your game world, bind some
|
|
|
|
// keys, etc.
|
|
|
|
ig.input.bind( ig.KEY.SPACE, 'jump' );
|
|
|
|
|
|
|
|
console.log('init called');
|
|
|
|
//this.loadLevel( LevelMyGame1 );
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
// Start your game
|
|
|
|
// 60fps, 320x240 pixels, scaled up by a factor of 2
|
|
|
|
ig.main('7fjxtzzexg', MyGame, 60, 320, 240, 2 );
|
|
|
|
|
2018-02-27 12:38:15 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
|
2018-02-27 12:35:17 +01:00
|
|
|
//@ sourceURL=entityLoaded.js
|