log updates

beta.r3js.org
-=yb4f310 2017-11-19 17:31:57 +01:00
parent afad5a99f8
commit 14b25ee7b6
5 changed files with 25 additions and 17 deletions

16
build/game-lib-min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
// 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
/**
@ -176,6 +176,7 @@ GameLib.Event.MOUSE_MOVE = 0x5e;
GameLib.Event.MOUSE_WHEEL = 0x5f;
GameLib.Event.MOUSE_UP = 0x60;
GameLib.Event.PARTICLE_INSTANCE_UPDATED = 0x61;
GameLib.Event.GAME_DATA = 0x62;
/**
* Returns string name of event ID
@ -283,6 +284,7 @@ GameLib.Event.GetEventName = function(number) {
case 0x5f : return 'mouse_wheel';
case 0x60 : return 'mouse_up';
case 0x61 : return 'particle_instance_updated';
case 0x62 : return 'game_data';
break;
}
@ -28220,6 +28222,7 @@ GameLib.System.Input.prototype.onTouchMove = function (event) {
var zoom = false;
if (event.changedTouches.length === 2) {
if (event.changedTouches[0].pageX < event.changedTouches[1].pageX) {
leftTouch = event.changedTouches[0];
rightTouch = event.changedTouches[1];
@ -28235,6 +28238,7 @@ GameLib.System.Input.prototype.onTouchMove = function (event) {
bottomTouch = event.changedTouches[1];
topTouch = event.changedTouches[0];
}
}
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) {
if (data.component instanceof GameLib.D3.ParticleEngine) {
console.log('new particle engine');
// console.log('new particle engine');
this.particleEngines.push(data.component);
}
if (data.component instanceof GameLib.D3.Camera) {
console.log('new camera');
// console.log('new camera');
this.camera = data.component;
}
@ -29908,12 +29912,12 @@ GameLib.System.Particle.prototype.removeComponent = function(data) {
var index = this.particleEngines.indexOf(data.component);
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);
} 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);
}
}

View File

@ -112,6 +112,7 @@ GameLib.Event.MOUSE_MOVE = 0x5e;
GameLib.Event.MOUSE_WHEEL = 0x5f;
GameLib.Event.MOUSE_UP = 0x60;
GameLib.Event.PARTICLE_INSTANCE_UPDATED = 0x61;
GameLib.Event.GAME_DATA = 0x62;
/**
* Returns string name of event ID
@ -219,6 +220,7 @@ GameLib.Event.GetEventName = function(number) {
case 0x5f : return 'mouse_wheel';
case 0x60 : return 'mouse_up';
case 0x61 : return 'particle_instance_updated';
case 0x62 : return 'game_data';
break;
}

View File

@ -622,6 +622,7 @@ GameLib.System.Input.prototype.onTouchMove = function (event) {
var zoom = false;
if (event.changedTouches.length === 2) {
if (event.changedTouches[0].pageX < event.changedTouches[1].pageX) {
leftTouch = event.changedTouches[0];
rightTouch = event.changedTouches[1];
@ -637,6 +638,7 @@ GameLib.System.Input.prototype.onTouchMove = function (event) {
bottomTouch = event.changedTouches[1];
topTouch = event.changedTouches[0];
}
}
for (var t = 0; t < event.changedTouches.length; t++) {

View File

@ -72,12 +72,12 @@ GameLib.System.Particle.prototype.start = function() {
GameLib.System.Particle.prototype.instanceCreated = function(data) {
if (data.component instanceof GameLib.D3.ParticleEngine) {
console.log('new particle engine');
// console.log('new particle engine');
this.particleEngines.push(data.component);
}
if (data.component instanceof GameLib.D3.Camera) {
console.log('new camera');
// console.log('new camera');
this.camera = data.component;
}
@ -94,12 +94,12 @@ GameLib.System.Particle.prototype.removeComponent = function(data) {
var index = this.particleEngines.indexOf(data.component);
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);
} 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);
}
}