From b6d26862fd2fc303d9bfebd3d7cd19b9ef83f0bb Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Mon, 9 Nov 2015 10:33:07 -0800 Subject: [PATCH] Add headers to baseball script files --- examples/baseball/bat.js | 11 +++++++++++ examples/baseball/firework.js | 11 +++++++++++ examples/baseball/pitching.js | 11 +++++++++++ examples/baseball/utils.js | 11 +++++++++++ 4 files changed, 44 insertions(+) diff --git a/examples/baseball/bat.js b/examples/baseball/bat.js index 98ad8b7bf4..eedda1e82a 100644 --- a/examples/baseball/bat.js +++ b/examples/baseball/bat.js @@ -1,3 +1,14 @@ +// +// bat.js +// examples/baseball/ +// +// Created by Ryan Huffman on Nov 9, 2015 +// Copyright 2015 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() { Script.include("pitching.js"); var pitchingMachine = null; diff --git a/examples/baseball/firework.js b/examples/baseball/firework.js index fee8aa8e35..89287c5a8b 100644 --- a/examples/baseball/firework.js +++ b/examples/baseball/firework.js @@ -1,3 +1,14 @@ +// +// firework.js +// examples/baseball/ +// +// Created by Ryan Huffman on Nov 9, 2015 +// Copyright 2015 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 +// + Script.include("http://rawgit.com/huffman/hifi/baseball/examples/baseball/utils.js"); var emitters = []; diff --git a/examples/baseball/pitching.js b/examples/baseball/pitching.js index 0e6fe0b61f..f8d5eba137 100644 --- a/examples/baseball/pitching.js +++ b/examples/baseball/pitching.js @@ -1,3 +1,14 @@ +// +// pitching.js +// examples/baseball/ +// +// Created by Ryan Huffman on Nov 9, 2015 +// Copyright 2015 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 +// + print("Loading pitching"); //Script.include("../libraries/line.js"); Script.include("https://raw.githubusercontent.com/huffman/hifi/line-js/examples/libraries/line.js"); diff --git a/examples/baseball/utils.js b/examples/baseball/utils.js index f128797345..80f4c62f32 100644 --- a/examples/baseball/utils.js +++ b/examples/baseball/utils.js @@ -1,3 +1,14 @@ +// +// utils.js +// examples/baseball/ +// +// Created by Ryan Huffman on Nov 9, 2015 +// Copyright 2015 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 +// + randomInt = function(low, high) { return Math.floor(randomFloat(low, high)); };