Update: CC - Entity Loaded - Impact Test (3w66vzyd6a.js) 128 bytes modified
parent
4eff549ab6
commit
a93b4c6552
|
@ -4,8 +4,19 @@ if (this.parentEntity === data.entity) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create your own game class
|
ig.module(
|
||||||
MyGame = ig.Game.extend({
|
'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() {
|
init: function() {
|
||||||
// initialize your game world, bind some
|
// initialize your game world, bind some
|
||||||
// keys, etc.
|
// keys, etc.
|
||||||
|
@ -14,10 +25,13 @@ MyGame = ig.Game.extend({
|
||||||
console.log('init called');
|
console.log('init called');
|
||||||
//this.loadLevel( LevelMyGame1 );
|
//this.loadLevel( LevelMyGame1 );
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// Start your game
|
||||||
|
// 60fps, 320x240 pixels, scaled up by a factor of 2
|
||||||
|
ig.main('7fjxtzzexg', MyGame, 60, 320, 240, 2 );
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Start your game
|
|
||||||
// 60fps, 320x240 pixels, scaled up by a factor of 2
|
|
||||||
ig.main('7fjxtzzexg', MyGame, 60, 320, 240, 2 );
|
|
||||||
|
|
||||||
//@ sourceURL=entityLoaded.js
|
//@ sourceURL=entityLoaded.js
|
Loading…
Reference in New Issue