more apache licensing tweaks to JS files

This commit is contained in:
Stephen Birarda 2014-04-09 09:19:29 -07:00
parent 0f204f932c
commit 9950845566
36 changed files with 104 additions and 35 deletions

View file

@ -1,6 +1,14 @@
//
// cameraExample.js
// examples
//
// Copyright 2014 High Fidelity, Inc.
//
// This sample script watches your hydra hands and makes clapping sound when they come close together fast
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
function length(v) {
return Math.sqrt(v.x * v.x + v.y * v.y + v.z * v.z);

View file

@ -3,7 +3,7 @@
// examples
//
// Created by Brad Hefta-Gaub on 1/28/14.
// Copyright 2014 HighFidelity, Inc. All rights reserved.
// Copyright 2014 HighFidelity, Inc.
//
// This is an example script that demonstrates use of the Clipboard class
//

View file

@ -3,7 +3,7 @@
// examples
//
// Created by Brad Hefta-Gaub on 12/31/13.
// Copyright 2013 High Fidelity, Inc. All rights reserved.
// Copyright 2013 High Fidelity, Inc.
//
// This is an example script that runs in a loop and displays a counter to the log
//

View file

@ -1,6 +1,14 @@
//
// drumStick.js
// examples
//
// Copyright 2014 High Fidelity, Inc.
//
// This example musical instrument script plays 'air drums' when you move your hands downward
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
function length(v) {
return Math.sqrt(v.x * v.x + v.y * v.y + v.z * v.z);

View file

@ -3,10 +3,13 @@
// examples
//
// Created by Brad Hefta-Gaub on 1/24/14.
// Copyright (c) 2014 HighFidelity, Inc. All rights reserved.
// Copyright 2014 HighFidelity, Inc.
//
// This is an example script that demonstrates "finding" particles
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
var iteration = 0;

View file

@ -3,7 +3,7 @@
// examples
//
// Created by Brad Hefta-Gaub on 3/4/14.
// Copyright (c) 2014 HighFidelity, Inc. All rights reserved.
// Copyright 2014 HighFidelity, Inc. All rights reserved.
//
// This is an example script that generates particles that act like flocking birds
//
@ -13,12 +13,16 @@
// go back to gliding
// birds don't like to be below a certain altitude
// if they are below that altitude they will keep thrusting up, until they get ove
//
// flocking
// try to align your velocity with velocity of other birds
// try to fly toward center of flock
// but dont get too close
//
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
var birdsInFlock = 40;

View file

@ -1,4 +1,12 @@
//
// fountain.js
// examples
//
// Copyright 2014 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
//
function vLength(v) {
return Math.sqrt(v.x * v.x + v.y * v.y + v.z * v.z);

View file

@ -1,6 +1,14 @@
// Add your JavaScript for assignment below this line
// The following is an example of Conway's Game of Life (http://en.wikipedia.org/wiki/Conway's_Game_of_Life)
//
// gameoflife.js
// examples
//
// Copyright 2014 High Fidelity, Inc.
//
// The following is an example of Conway's Game of Life (http://en.wikipedia.org/wiki/Conway's_Game_of_Life)
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
var NUMBER_OF_CELLS_EACH_DIMENSION = 64;
var NUMBER_OF_CELLS = NUMBER_OF_CELLS_EACH_DIMENSION * NUMBER_OF_CELLS_EACH_DIMENSION;

View file

@ -3,7 +3,7 @@
// examples
//
// Created by Brad Hefta-Gaub on 1/29/14.
// Copyright (c) 2014 HighFidelity, Inc. All rights reserved.
// Copyright 2014 HighFidelity, Inc.
//
// This is an example script that demonstrates use of the Controller class
//

View file

@ -4,7 +4,7 @@
//
// Created by Brad Hefta-Gaub on 12/31/13.
// Modified by Philip on 3/3/14
// Copyright (c) 2013 HighFidelity, Inc. All rights reserved.
// Copyright 2013 HighFidelity, Inc.
//
// This is an example script that turns the hydra controllers and mouse into a particle gun.
// It reads the controller, watches for trigger pulls, and launches particles.
@ -14,7 +14,6 @@
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
function getRandomFloat(min, max) {
return Math.random() * (max - min) + min;
}

View file

@ -3,7 +3,7 @@
// examples
//
// Created by Brad Hefta-Gaub on 1/28/14.
// Copyright (c) 2014 HighFidelity, Inc. All rights reserved.
// Copyright 2014 HighFidelity, Inc.
//
// This is an example script that demonstrates how to enable or disable local rendering of your own avatar
//

View file

@ -3,7 +3,7 @@
// examples
//
// Created by Brad Hefta-Gaub on 2/10/14.
// Copyright (c) 2014 HighFidelity, Inc. All rights reserved.
// Copyright 2014 HighFidelity, Inc.
//
// This is an example script that demonstrates use of the Controller and MyAvatar classes to implement
// avatar flying through the hydra/controller joysticks

View file

@ -3,7 +3,7 @@
// examples
//
// Created by Brad Hefta-Gaub on 3/24/14
// Copyright (c) 2013 HighFidelity, Inc. All rights reserved.
// Copyright 2013 HighFidelity, Inc.
//
// This is an example script that demonstrates use of the Script.include() feature
//

View file

@ -3,7 +3,7 @@
// examples
//
// Created by Clément Brisset on March 20, 2014
// Copyright (c) 2014 HighFidelity, Inc. All rights reserved.
// Copyright 2014 HighFidelity, Inc.
//
// Allows you to inspect non moving objects (Voxels or Avatars) using Atl, Control (Command on Mac) and Shift
//

View file

@ -1,3 +1,12 @@
//
// localVoxelsExample.js
// examples
//
// Copyright 2014 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 TREE_SCALE = 16384;
var tree = LocalVoxels("tree");

View file

@ -3,7 +3,7 @@
// examples
//
// Created by Brad Hefta-Gaub on 2/6/14.
// Copyright (c) 2014 HighFidelity, Inc. All rights reserved.
// Copyright 2014 HighFidelity, Inc.
//
// This is an example script that demonstrates use of the Camera class's lookAt(), keepLookingAt(), and stopLookingAt()
// features.

View file

@ -3,7 +3,7 @@
// examples
//
// Created by Brad Hefta-Gaub on 1/28/14.
// Copyright (c) 2014 HighFidelity, Inc. All rights reserved.
// Copyright (c) 2014 HighFidelity, Inc.
//
// This is an example script that demonstrates use of the Controller class
//

View file

@ -3,7 +3,7 @@
// examples
//
// Created by Brad Hefta-Gaub on 1/28/14.
// Copyright (c) 2014 HighFidelity, Inc. All rights reserved.
// Copyright (c) 2014 HighFidelity, Inc.
//
// This is an example script that demonstrates use of the Controller class
//

View file

@ -3,7 +3,7 @@
// examples
//
// Created by Brad Hefta-Gaub on 2/24/14
// Copyright (c) 2013 HighFidelity, Inc. All rights reserved.
// Copyright (c) 2013 HighFidelity, Inc.
//
// This is an example script that demonstrates use of the Menu object
//

View file

@ -1,6 +1,14 @@
//
// movingVoxel.js
// examples
//
// Copyright 2014 High Fidelity, Inc.
//
// This sample script creates a voxel moving back and forth in a line
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
var position = { x: 0, y: 0, z: 0 };
var oldPosition = { x: 0, y: 0, z:0 };

View file

@ -3,7 +3,7 @@
// examples
//
// Created by Brad Hefta-Gaub on 2/9/14.
// Copyright (c) 2014 HighFidelity, Inc. All rights reserved.
// Copyright 2014 HighFidelity, Inc.
//
// This is an example script that demonstrates use of the Controller class's multi-touch features
//

View file

@ -3,7 +3,7 @@
// examples
//
// Created by Brad Hefta-Gaub on 2/14/14.
// Copyright (c) 2014 HighFidelity, Inc. All rights reserved.
// Copyright 2014 HighFidelity, Inc.
//
// This is an example script that demonstrates use of the Overlays class
//

View file

@ -3,7 +3,7 @@
// examples
//
// Created by Brad Hefta-Gaub on 12/31/13.
// Copyright (c) 2013 HighFidelity, Inc. All rights reserved.
// Copyright 2013 HighFidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html

View file

@ -2,6 +2,8 @@
// particleBird.js
// examples
//
// Copyright 2014 High Fidelity, Inc.
//
// This sample script moves a voxel around like a bird and sometimes makes tweeting noises
//
// Distributed under the Apache License, Version 2.0.

View file

@ -3,7 +3,7 @@
// examples
//
// Created by Brad Hefta-Gaub on 1/28/14.
// Copyright (c) 2014 HighFidelity, Inc. All rights reserved.
// Copyright 2014 High Fidelity, Inc.
//
// This is an example script that demonstrates creating and editing a particle
//

View file

@ -1,4 +1,8 @@
//
// playSound.js
// examples
//
// Copyright 2014 High Fidelity, Inc.
// This sample script loads a sound file and plays it at the 'fingertip' of the
//
// Distributed under the Apache License, Version 2.0.

View file

@ -3,7 +3,7 @@
// examples
//
// Created by Brad Hefta-Gaub on 2/6/14.
// Copyright (c) 2014 HighFidelity, Inc. All rights reserved.
// Copyright 2014 High Fidelity, Inc.
//
// This is an example script that demonstrates use of the Camera class
//

View file

@ -3,7 +3,7 @@
// examples
//
// Created by Andrzej Kapolka on 2/24/14.
// Copyright (c) 2014 High Fidelity, Inc. All rights reserved.
// Copyright 2014 High Fidelity, Inc. All rights reserved.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html

View file

@ -3,7 +3,7 @@
// examples
//
// Created by Brad Hefta-Gaub on 1/24/14.
// Copyright (c) 2014 HighFidelity, Inc. All rights reserved.
// Copyright 2014 High Fidelity, Inc.
//
// This is an example script that demonstrates "finding" particles
//

View file

@ -3,9 +3,7 @@
// examples
//
// Created by Brad Hefta-Gaub on 2/26/14
// Copyright (c) 2014 HighFidelity, Inc. All rights reserved.
//
// This is an example script
// Copyright 2014 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

View file

@ -3,7 +3,7 @@
// examples
//
// Created by Brad Hefta-Gaub on 3/22/14
// Copyright (c) 2013 HighFidelity, Inc. All rights reserved.
// Copyright 2013 High Fidelity, Inc.
//
// This is an example script that demonstrates use of the Menu object
//

View file

@ -3,7 +3,7 @@
// examples
//
// Created by Brad Hefta-Gaub on 3/22/14
// Copyright (c) 2013 HighFidelity, Inc. All rights reserved.
// Copyright 2013 High Fidelity, Inc.
//
// This is an example script that demonstrates use of the Menu object
//

View file

@ -3,7 +3,7 @@
// examples
//
// Created by Brad Hefta-Gaub on 1/30/14.
// Copyright (c) 2014 HighFidelity, Inc. All rights reserved.
// Copyright 2014 High Fidelity, Inc.
//
// This is an example script that demonstrates a simple space invaders style of game
//

View file

@ -1,3 +1,13 @@
//
// timer.js
// examples
//
// Copyright 2014 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 one_timer = Script.setTimeout(function() { print("One time timer fired!"); }, 10000);
var multiple_timer = Script.setInterval(function() { print("Repeating timer fired!"); }, 1000);

View file

@ -3,7 +3,7 @@
// examples
//
// Created by Brad Hefta-Gaub on 1/20/14.
// Copyright (c) 2014 HighFidelity, Inc. All rights reserved.
// Copyright 2014 High Fidelity, Inc.
//
// This is an example script that turns the hydra controllers into a toy ball catch and throw game.
// It reads the controller, watches for button presses and trigger pulls, and launches particles.

View file

@ -3,7 +3,7 @@
// examples
//
// Created by Brad Hefta-Gaub on 2/14/14.
// Copyright (c) 2014 HighFidelity, Inc. All rights reserved.
// Copyright 2014 High Fidelity, Inc.
//
// This is an example script that demonstrates use of the Overlays, Controller, and Audio classes
//