From 824d5ff11cb63f6091594bfa665c6ea16651dce5 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Fri, 2 Mar 2018 15:14:19 +0100 Subject: [PATCH] Initial Commit: impact_snake_loaded (o7s7v9qq97.js) --- o7s7v9qq97.js | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 o7s7v9qq97.js diff --git a/o7s7v9qq97.js b/o7s7v9qq97.js new file mode 100644 index 0000000..9667fbb --- /dev/null +++ b/o7s7v9qq97.js @@ -0,0 +1,46 @@ + +if (this.parentEntity === data.entity) { + console.log('Entity Impact Test Loaded'); +} else { + return; +} + +ig.module( + 'game.impact-test' +) +.requires( + 'impact.font', + 'impact.game', + 'impact.image', + 'game.levels.snake' +) +.defines(function(){ + + // code for this module + + // Create your own game class + ig.global.Snake = ig.Game.extend( + + { + font: new ig.Font( 'media/04b03.font.png' ), + + init: function() { + // initialize your game world, bind some + // keys, etc. + ig.input.bind( ig.KEY.SPACE, 'jump' ); + + console.log('init called'); + this.loadLevel( LevelSnake ); + } + } + ); + + var size = GameLib.Utils.GetWindowSize(); + + // Start your game + // 60fps, 320x240 pixels, scaled up by a factor of 2 + ig.main('#n5iza1dcbp', Snake, 60, 64 * 20, 64 * 20, 1 ); + +}); + +//@ sourceURL=entityLoaded.js \ No newline at end of file