Update: CC - SnailRunner - Entity Loaded (78gnds8jrj.js) 186 bytes modified
parent
c618117f08
commit
021ae812a7
|
@ -71,6 +71,17 @@ this.mouse = GameLib.EntityManager.Instance.findComponentById('eriv6mcw8k');
|
||||||
GameLib.CustomCode.prototype.loadLevel = function(index) {
|
GameLib.CustomCode.prototype.loadLevel = function(index) {
|
||||||
var image = this['level' + 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);
|
}.bind(this);
|
||||||
|
|
||||||
GameLib.CustomCode.prototype.spawnRoadSections = function() {
|
GameLib.CustomCode.prototype.spawnRoadSections = function() {
|
||||||
|
|
Loading…
Reference in New Issue