overte/unpublishedScripts/DomainContent/Home/blocky/singleSpawner.js
James B. Pollack 6bc745ee01 end of day
2016-05-20 17:05:38 -07:00

27 lines
No EOL
598 B
JavaScript

//
//
// Created by The Content Team 4/10/216
// Copyright 2016 High Fidelity, Inc.
//
//
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
var blockyPath = 'atp:/blocky/wrapper.js';
Script.include(blockyPath);
var center = Vec3.sum(Vec3.sum(MyAvatar.position, {
x: 0,
y: 0.5,
z: 0
}), Vec3.multiply(1, Quat.getFront(Camera.getOrientation())));
var blocky = new BlockyGame(center, {
x: 0,
y: 0,
z: 0
});
Script.scriptEnding.connect(function() {
blocky.cleanup()
})