log updates
parent
afad5a99f8
commit
14b25ee7b6
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
||||||
// COMPILE TIME DEFINITIONS (Generated via gulp)
|
// COMPILE TIME DEFINITIONS (Generated via gulp)
|
||||||
var __DATE__ = "Sun Nov 19 2017 14:51:44 GMT+0100 (CET)";
|
var __DATE__ = "Sun Nov 19 2017 17:31:12 GMT+0100 (CET)";
|
||||||
// END COMPILE TIME DEFINITIONS
|
// END COMPILE TIME DEFINITIONS
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -176,6 +176,7 @@ GameLib.Event.MOUSE_MOVE = 0x5e;
|
||||||
GameLib.Event.MOUSE_WHEEL = 0x5f;
|
GameLib.Event.MOUSE_WHEEL = 0x5f;
|
||||||
GameLib.Event.MOUSE_UP = 0x60;
|
GameLib.Event.MOUSE_UP = 0x60;
|
||||||
GameLib.Event.PARTICLE_INSTANCE_UPDATED = 0x61;
|
GameLib.Event.PARTICLE_INSTANCE_UPDATED = 0x61;
|
||||||
|
GameLib.Event.GAME_DATA = 0x62;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns string name of event ID
|
* Returns string name of event ID
|
||||||
|
@ -283,6 +284,7 @@ GameLib.Event.GetEventName = function(number) {
|
||||||
case 0x5f : return 'mouse_wheel';
|
case 0x5f : return 'mouse_wheel';
|
||||||
case 0x60 : return 'mouse_up';
|
case 0x60 : return 'mouse_up';
|
||||||
case 0x61 : return 'particle_instance_updated';
|
case 0x61 : return 'particle_instance_updated';
|
||||||
|
case 0x62 : return 'game_data';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28220,6 +28222,7 @@ GameLib.System.Input.prototype.onTouchMove = function (event) {
|
||||||
var zoom = false;
|
var zoom = false;
|
||||||
|
|
||||||
if (event.changedTouches.length === 2) {
|
if (event.changedTouches.length === 2) {
|
||||||
|
|
||||||
if (event.changedTouches[0].pageX < event.changedTouches[1].pageX) {
|
if (event.changedTouches[0].pageX < event.changedTouches[1].pageX) {
|
||||||
leftTouch = event.changedTouches[0];
|
leftTouch = event.changedTouches[0];
|
||||||
rightTouch = event.changedTouches[1];
|
rightTouch = event.changedTouches[1];
|
||||||
|
@ -28235,6 +28238,7 @@ GameLib.System.Input.prototype.onTouchMove = function (event) {
|
||||||
bottomTouch = event.changedTouches[1];
|
bottomTouch = event.changedTouches[1];
|
||||||
topTouch = event.changedTouches[0];
|
topTouch = event.changedTouches[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var t = 0; t < event.changedTouches.length; t++) {
|
for (var t = 0; t < event.changedTouches.length; t++) {
|
||||||
|
@ -29886,12 +29890,12 @@ GameLib.System.Particle.prototype.start = function() {
|
||||||
GameLib.System.Particle.prototype.instanceCreated = function(data) {
|
GameLib.System.Particle.prototype.instanceCreated = function(data) {
|
||||||
|
|
||||||
if (data.component instanceof GameLib.D3.ParticleEngine) {
|
if (data.component instanceof GameLib.D3.ParticleEngine) {
|
||||||
console.log('new particle engine');
|
// console.log('new particle engine');
|
||||||
this.particleEngines.push(data.component);
|
this.particleEngines.push(data.component);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.component instanceof GameLib.D3.Camera) {
|
if (data.component instanceof GameLib.D3.Camera) {
|
||||||
console.log('new camera');
|
// console.log('new camera');
|
||||||
this.camera = data.component;
|
this.camera = data.component;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29908,12 +29912,12 @@ GameLib.System.Particle.prototype.removeComponent = function(data) {
|
||||||
var index = this.particleEngines.indexOf(data.component);
|
var index = this.particleEngines.indexOf(data.component);
|
||||||
|
|
||||||
if (index !== -1) {
|
if (index !== -1) {
|
||||||
console.log('removing particle engine from system' + data.component.name);
|
// console.log('removing particle engine from system' + data.component.name);
|
||||||
|
|
||||||
this.particleEngines.splice(index, 1);
|
this.particleEngines.splice(index, 1);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
console.log('failed to find the particle engine in the system : ' + data.component.name);
|
// console.log('failed to find the particle engine in the system : ' + data.component.name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -112,6 +112,7 @@ GameLib.Event.MOUSE_MOVE = 0x5e;
|
||||||
GameLib.Event.MOUSE_WHEEL = 0x5f;
|
GameLib.Event.MOUSE_WHEEL = 0x5f;
|
||||||
GameLib.Event.MOUSE_UP = 0x60;
|
GameLib.Event.MOUSE_UP = 0x60;
|
||||||
GameLib.Event.PARTICLE_INSTANCE_UPDATED = 0x61;
|
GameLib.Event.PARTICLE_INSTANCE_UPDATED = 0x61;
|
||||||
|
GameLib.Event.GAME_DATA = 0x62;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns string name of event ID
|
* Returns string name of event ID
|
||||||
|
@ -219,6 +220,7 @@ GameLib.Event.GetEventName = function(number) {
|
||||||
case 0x5f : return 'mouse_wheel';
|
case 0x5f : return 'mouse_wheel';
|
||||||
case 0x60 : return 'mouse_up';
|
case 0x60 : return 'mouse_up';
|
||||||
case 0x61 : return 'particle_instance_updated';
|
case 0x61 : return 'particle_instance_updated';
|
||||||
|
case 0x62 : return 'game_data';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -622,6 +622,7 @@ GameLib.System.Input.prototype.onTouchMove = function (event) {
|
||||||
var zoom = false;
|
var zoom = false;
|
||||||
|
|
||||||
if (event.changedTouches.length === 2) {
|
if (event.changedTouches.length === 2) {
|
||||||
|
|
||||||
if (event.changedTouches[0].pageX < event.changedTouches[1].pageX) {
|
if (event.changedTouches[0].pageX < event.changedTouches[1].pageX) {
|
||||||
leftTouch = event.changedTouches[0];
|
leftTouch = event.changedTouches[0];
|
||||||
rightTouch = event.changedTouches[1];
|
rightTouch = event.changedTouches[1];
|
||||||
|
@ -637,6 +638,7 @@ GameLib.System.Input.prototype.onTouchMove = function (event) {
|
||||||
bottomTouch = event.changedTouches[1];
|
bottomTouch = event.changedTouches[1];
|
||||||
topTouch = event.changedTouches[0];
|
topTouch = event.changedTouches[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var t = 0; t < event.changedTouches.length; t++) {
|
for (var t = 0; t < event.changedTouches.length; t++) {
|
||||||
|
|
|
@ -72,12 +72,12 @@ GameLib.System.Particle.prototype.start = function() {
|
||||||
GameLib.System.Particle.prototype.instanceCreated = function(data) {
|
GameLib.System.Particle.prototype.instanceCreated = function(data) {
|
||||||
|
|
||||||
if (data.component instanceof GameLib.D3.ParticleEngine) {
|
if (data.component instanceof GameLib.D3.ParticleEngine) {
|
||||||
console.log('new particle engine');
|
// console.log('new particle engine');
|
||||||
this.particleEngines.push(data.component);
|
this.particleEngines.push(data.component);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.component instanceof GameLib.D3.Camera) {
|
if (data.component instanceof GameLib.D3.Camera) {
|
||||||
console.log('new camera');
|
// console.log('new camera');
|
||||||
this.camera = data.component;
|
this.camera = data.component;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -94,12 +94,12 @@ GameLib.System.Particle.prototype.removeComponent = function(data) {
|
||||||
var index = this.particleEngines.indexOf(data.component);
|
var index = this.particleEngines.indexOf(data.component);
|
||||||
|
|
||||||
if (index !== -1) {
|
if (index !== -1) {
|
||||||
console.log('removing particle engine from system' + data.component.name);
|
// console.log('removing particle engine from system' + data.component.name);
|
||||||
|
|
||||||
this.particleEngines.splice(index, 1);
|
this.particleEngines.splice(index, 1);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
console.log('failed to find the particle engine in the system : ' + data.component.name);
|
// console.log('failed to find the particle engine in the system : ' + data.component.name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue