Update: CC - SnailRunner - Entity Loaded (78gnds8jrj.js) 186 bytes modified

beta.r3js.org
-=yb4f310 2018-03-09 19:47:35 +01:00
parent c618117f08
commit 021ae812a7
1 changed files with 12 additions and 1 deletions

View File

@ -70,7 +70,18 @@ this.mouse = GameLib.EntityManager.Instance.findComponentById('eriv6mcw8k');
GameLib.CustomCode.prototype.loadLevel = function(index) {
var image = this['level' + index];
var heightData = image.getHeightData();
var heightData = image.getHeightData();
for (var x = 0; x < 1024; x++) {
for (var z = 0; z < 10; z++) {
var color = heightData[x,z];
if (color !== 0) {
console.log(color + ': ' + x + ', ' + z);
}
}
}
}.bind(this);
GameLib.CustomCode.prototype.spawnRoadSections = function() {