Update: CC - Before Render - Moorcow (qemp4een6t.js) 6 bytes modified
parent
67e65b31ff
commit
55d34d5a6e
|
@ -351,17 +351,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 = 5 / speed;
|
var life = 2.5 / speed;
|
||||||
|
|
||||||
if (enemyType === 1) {
|
if (enemyType === 1) {
|
||||||
position.x = -distance;
|
position.x = -distance;
|
||||||
life += 3 / speed;
|
life += 1.5 / 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 += 3 / speed;
|
life += 1.5 / speed;
|
||||||
velocity = {x: -speed, y: 0, z: 0};
|
velocity = {x: -speed, y: 0, z: 0};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue