mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 17:28:13 +02:00
add blocky
This commit is contained in:
parent
fdb0fa4559
commit
7f89ded241
3 changed files with 9 additions and 3 deletions
|
@ -93,7 +93,7 @@ var TARGET_BLOCKS_POSITION = {
|
||||||
}
|
}
|
||||||
|
|
||||||
Blocky.prototype = {
|
Blocky.prototype = {
|
||||||
debug: true,
|
debug: false,
|
||||||
playableBlocks: [],
|
playableBlocks: [],
|
||||||
targetBlocks: [],
|
targetBlocks: [],
|
||||||
preload: function(entityID) {
|
preload: function(entityID) {
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
//
|
//
|
||||||
|
|
||||||
var blockyPath = Script.resolvePath('wrapper.js?'+Math.random());
|
var blockyPath = Script.resolvePath('wrapper.js');
|
||||||
Script.include(blockyPath);
|
Script.include(blockyPath);
|
||||||
var center = Vec3.sum(Vec3.sum(MyAvatar.position, {
|
var center = Vec3.sum(Vec3.sum(MyAvatar.position, {
|
||||||
x: 0,
|
x: 0,
|
||||||
|
|
|
@ -338,6 +338,12 @@
|
||||||
z: -0.0013
|
z: -0.0013
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var blocky = new BlockyGame({
|
||||||
|
x: 1098.27,
|
||||||
|
y: 460.43,
|
||||||
|
z: -66.15
|
||||||
|
})
|
||||||
|
|
||||||
print('HOME after creating scripted entities')
|
print('HOME after creating scripted entities')
|
||||||
|
|
||||||
},
|
},
|
||||||
|
@ -428,7 +434,7 @@
|
||||||
y: 459.5230,
|
y: 459.5230,
|
||||||
z: -84.3897
|
z: -84.3897
|
||||||
});
|
});
|
||||||
|
|
||||||
print('HOME after creating kinetic entities');
|
print('HOME after creating kinetic entities');
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue