Map Base
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
var CubeEntity = include('entities/CubeEntity.js');
|
||||
|
||||
function TestChunkN100(x, y, z) {
|
||||
MapChunk.call(this, x, y, z);
|
||||
|
||||
this.cube = new CubeEntity();
|
||||
this.cube.position.position = new Vec3(-16, 0, 0);
|
||||
}
|
||||
|
||||
TestChunkN100.prototype = Object.create(MapChunk.prototype);
|
||||
TestChunkN100.prototype.constructor = TestChunkN100;
|
||||
|
||||
TestChunkN100.prototype.dispose = function() {
|
||||
this.cube.dispose();
|
||||
};
|
||||
|
||||
module = TestChunkN100;
|
||||
@@ -0,0 +1,17 @@
|
||||
var CubeEntity = include('entities/CubeEntity.js');
|
||||
|
||||
function TestChunk000(x, y, z) {
|
||||
MapChunk.call(this, x, y, z);
|
||||
|
||||
this.cube = new CubeEntity();
|
||||
this.cube.position.position = new Vec3(0, 0, 0);
|
||||
}
|
||||
|
||||
TestChunk000.prototype = Object.create(MapChunk.prototype);
|
||||
TestChunk000.prototype.constructor = TestChunk000;
|
||||
|
||||
TestChunk000.prototype.dispose = function() {
|
||||
this.cube.dispose();
|
||||
};
|
||||
|
||||
module = TestChunk000;
|
||||
@@ -0,0 +1,17 @@
|
||||
var CubeEntity = include('entities/CubeEntity.js');
|
||||
|
||||
function TestChunk001(x, y, z) {
|
||||
MapChunk.call(this, x, y, z);
|
||||
|
||||
this.cube = new CubeEntity();
|
||||
this.cube.position.position = new Vec3(0, 0, 16);
|
||||
}
|
||||
|
||||
TestChunk001.prototype = Object.create(MapChunk.prototype);
|
||||
TestChunk001.prototype.constructor = TestChunk001;
|
||||
|
||||
TestChunk001.prototype.dispose = function() {
|
||||
this.cube.dispose();
|
||||
};
|
||||
|
||||
module = TestChunk001;
|
||||
@@ -0,0 +1,17 @@
|
||||
var CubeEntity = include('entities/CubeEntity.js');
|
||||
|
||||
function TestChunk010(x, y, z) {
|
||||
MapChunk.call(this, x, y, z);
|
||||
|
||||
this.cube = new CubeEntity();
|
||||
this.cube.position.position = new Vec3(0, 16, 0);
|
||||
}
|
||||
|
||||
TestChunk010.prototype = Object.create(MapChunk.prototype);
|
||||
TestChunk010.prototype.constructor = TestChunk010;
|
||||
|
||||
TestChunk010.prototype.dispose = function() {
|
||||
this.cube.dispose();
|
||||
};
|
||||
|
||||
module = TestChunk010;
|
||||
@@ -0,0 +1,17 @@
|
||||
var CubeEntity = include('entities/CubeEntity.js');
|
||||
|
||||
function TestChunk100(x, y, z) {
|
||||
MapChunk.call(this, x, y, z);
|
||||
|
||||
this.cube = new CubeEntity();
|
||||
this.cube.position.position = new Vec3(16, 0, 0);
|
||||
}
|
||||
|
||||
TestChunk100.prototype = Object.create(MapChunk.prototype);
|
||||
TestChunk100.prototype.constructor = TestChunk100;
|
||||
|
||||
TestChunk100.prototype.dispose = function() {
|
||||
this.cube.dispose();
|
||||
};
|
||||
|
||||
module = TestChunk100;
|
||||
@@ -0,0 +1,17 @@
|
||||
var CubeEntity = include('entities/CubeEntity.js');
|
||||
|
||||
function TestChunk200(x, y, z) {
|
||||
MapChunk.call(this, x, y, z);
|
||||
|
||||
this.cube = new CubeEntity();
|
||||
this.cube.position.position = new Vec3(32, 0, 0);
|
||||
}
|
||||
|
||||
TestChunk200.prototype = Object.create(MapChunk.prototype);
|
||||
TestChunk200.prototype.constructor = TestChunk200;
|
||||
|
||||
TestChunk200.prototype.dispose = function() {
|
||||
this.cube.dispose();
|
||||
};
|
||||
|
||||
module = TestChunk200;
|
||||
@@ -0,0 +1,17 @@
|
||||
var CubeEntity = include('entities/CubeEntity.js');
|
||||
|
||||
function TestChunk300(x, y, z) {
|
||||
MapChunk.call(this, x, y, z);
|
||||
|
||||
this.cube = new CubeEntity();
|
||||
this.cube.position.position = new Vec3(48, 0, 0);
|
||||
}
|
||||
|
||||
TestChunk300.prototype = Object.create(MapChunk.prototype);
|
||||
TestChunk300.prototype.constructor = TestChunk300;
|
||||
|
||||
TestChunk300.prototype.dispose = function() {
|
||||
this.cube.dispose();
|
||||
};
|
||||
|
||||
module = TestChunk300;
|
||||
@@ -0,0 +1,17 @@
|
||||
function TestMap() {
|
||||
Map.call(this);
|
||||
|
||||
Map.setChunkSize(16, 16, 16);
|
||||
Map.setPosition(0, 0, 0);
|
||||
}
|
||||
|
||||
TestMap.prototype = Object.create(Map.prototype);
|
||||
TestMap.prototype.constructor = TestMap;
|
||||
|
||||
TestMap.prototype.update = function() {
|
||||
};
|
||||
|
||||
TestMap.prototype.dispose = function() {
|
||||
};
|
||||
|
||||
module = TestMap;
|
||||
Reference in New Issue
Block a user