Update: CC - Before Render - Moorcow (6rskhzgjog.js) 5 bytes modified
parent
8c155f3a29
commit
0b9d505926
|
@ -246,17 +246,17 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
|
||||||
if (meshType === 1) {
|
if (meshType === 1) {
|
||||||
mesh = this.bull.clone();
|
mesh = this.bull.clone();
|
||||||
material = this.bull.materials[0].clone();
|
material = this.bull.materials[0].clone();
|
||||||
speed = 0.2;
|
speed = 0.3;
|
||||||
} else if (meshType === 2) {
|
} else if (meshType === 2) {
|
||||||
mesh = this.star.clone();
|
mesh = this.star.clone();
|
||||||
score = 20;
|
score = 20;
|
||||||
material = this.star.materials[0].clone();
|
material = this.star.materials[0].clone();
|
||||||
speed = 0.3;
|
speed = 0.4;
|
||||||
} else if (meshType === 3) {
|
} else if (meshType === 3) {
|
||||||
mesh = this.burger.clone();
|
mesh = this.burger.clone();
|
||||||
score = 50;
|
score = 50;
|
||||||
material = this.burger.materials[0].clone();
|
material = this.burger.materials[0].clone();
|
||||||
speed = 0.4;
|
speed = 0.45;
|
||||||
} else if (meshType === 4) {
|
} else if (meshType === 4) {
|
||||||
mesh = this.parcel.clone();
|
mesh = this.parcel.clone();
|
||||||
score = 75;
|
score = 75;
|
||||||
|
@ -309,17 +309,17 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
|
||||||
var distance = 100;
|
var distance = 100;
|
||||||
var angledistance = distance * Math.sin(Math.PI / 4);
|
var angledistance = distance * Math.sin(Math.PI / 4);
|
||||||
|
|
||||||
var life = 2.5 / speed;
|
var life = 5 / speed;
|
||||||
|
|
||||||
if (enemyType === 1) {
|
if (enemyType === 1) {
|
||||||
position.x = -distance;
|
position.x = -distance;
|
||||||
life += 1.5 / speed;
|
life += 3 / speed;
|
||||||
velocity = {x:speed,y:0,z:0};
|
velocity = {x:speed,y:0,z:0};
|
||||||
}
|
}
|
||||||
|
|
||||||
if (enemyType === 2) {
|
if (enemyType === 2) {
|
||||||
position.x = distance;
|
position.x = distance;
|
||||||
life += 1.5 / speed;
|
life += 3 / speed;
|
||||||
velocity = {x:-speed,y:0,z:0};
|
velocity = {x:-speed,y:0,z:0};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue