Update: CC - Before Render - Moorcow (72d6a2a3kc.js) 225 bytes modified
parent
bf753499f5
commit
7bda9d2a18
|
@ -10,11 +10,13 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
|
||||||
this.star = this.entityLoaded.star;
|
this.star = this.entityLoaded.star;
|
||||||
this.burger = this.entityLoaded.burger;
|
this.burger = this.entityLoaded.burger;
|
||||||
this.parcel = this.entityLoaded.parcel;
|
this.parcel = this.entityLoaded.parcel;
|
||||||
|
this.santa = this.entityLoaded.santa;
|
||||||
|
|
||||||
this.bull.instance.visible = false;
|
this.bull.instance.visible = false;
|
||||||
this.star.instance.visible = false;
|
this.star.instance.visible = false;
|
||||||
this.burger.instance.visible = false;
|
this.burger.instance.visible = false;
|
||||||
this.parcel.instance.visible = false;
|
this.parcel.instance.visible = false;
|
||||||
|
this.santa.instance.visible = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This component is initializing - set the total time to 0
|
* This component is initializing - set the total time to 0
|
||||||
|
@ -44,7 +46,7 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
|
||||||
this.spawnEnemy = function() {
|
this.spawnEnemy = function() {
|
||||||
|
|
||||||
var enemyType = GameLib.Utils.GetRandomIntInclusive(1, 5);
|
var enemyType = GameLib.Utils.GetRandomIntInclusive(1, 5);
|
||||||
var meshType = GameLib.Utils.GetRandomIntInclusive(1, 4);
|
var meshType = GameLib.Utils.GetRandomIntInclusive(1, 5);
|
||||||
|
|
||||||
var y = GameLib.Utils.GetRandomIntInclusive(2, 10);
|
var y = GameLib.Utils.GetRandomIntInclusive(2, 10);
|
||||||
|
|
||||||
|
@ -69,6 +71,10 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) {
|
||||||
mesh = this.parcel.clone();
|
mesh = this.parcel.clone();
|
||||||
material = this.parcel.materials[0].clone();
|
material = this.parcel.materials[0].clone();
|
||||||
speed = 0.5;
|
speed = 0.5;
|
||||||
|
} else if (meshType === 5) {
|
||||||
|
mesh = this.santa.clone();
|
||||||
|
material = this.santa.materials[0].clone();
|
||||||
|
speed = 0.5;
|
||||||
} else {
|
} else {
|
||||||
console.log('unknown mesh type : ' + meshType);
|
console.log('unknown mesh type : ' + meshType);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue