classic puzzle v1
This commit is contained in:
@@ -123,6 +123,8 @@ export default {
|
||||
await this.expandScenarioData(scene);
|
||||
gameEngine.dashboard?.loading(0.1);
|
||||
|
||||
gameEngine.orbitControls.enableRotate = this.env == 'GameDesigner'
|
||||
|
||||
//this is needed cause when mounted canvas has different size
|
||||
this.resize();
|
||||
target.objects = target.objects || {};
|
||||
@@ -212,6 +214,7 @@ export default {
|
||||
gameEngine.activeObjects.add(intro.object);
|
||||
intro.video.addEventListener('pause',()=>{
|
||||
intro.object.removeFromParent();
|
||||
gameEngine.clickable.remove(intro.object); //TODO!!!!
|
||||
gameEngine.activeObjects.visible = true;
|
||||
});
|
||||
intro.video.play();
|
||||
@@ -244,6 +247,10 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
targetPointer(e, t){
|
||||
gameEngine.onPointer(e, this.$refs.target, t);
|
||||
},
|
||||
|
||||
setObjectAttributes(l, data, object, source, autoScaleFactor = 1){
|
||||
if (l[data.id]){
|
||||
['position', 'scale', 'rotation'].forEach(p=>{
|
||||
|
||||
Reference in New Issue
Block a user