diff --git a/examples/toys/breakdanceCore.js b/examples/entityScripts/breakdanceCore.js similarity index 99% rename from examples/toys/breakdanceCore.js rename to examples/entityScripts/breakdanceCore.js index 655e55dfc6..0220962ec8 100644 --- a/examples/toys/breakdanceCore.js +++ b/examples/entityScripts/breakdanceCore.js @@ -1,6 +1,5 @@ // // breakdanceCore.js -// examples/toys // // This is the core breakdance game library, it can be used as part of an entity script, or an omniTool module, or bootstapped on it's own // Created by Brad Hefta-Gaub on August 24, 2015 diff --git a/examples/toys/breakdanceToy.js b/examples/entityScripts/breakdanceToy.js similarity index 100% rename from examples/toys/breakdanceToy.js rename to examples/entityScripts/breakdanceToy.js diff --git a/examples/toys/grenade.js b/examples/entityScripts/grenade.js similarity index 100% rename from examples/toys/grenade.js rename to examples/entityScripts/grenade.js diff --git a/examples/toys/magBalls.js b/examples/entityScripts/magBalls.js similarity index 97% rename from examples/toys/magBalls.js rename to examples/entityScripts/magBalls.js index e163aa5ffd..721e174676 100644 --- a/examples/toys/magBalls.js +++ b/examples/entityScripts/magBalls.js @@ -7,10 +7,10 @@ // // FIXME Script paths have to be relative to the caller, in this case libraries/OmniTool.js -Script.include("../toys/magBalls/constants.js"); -Script.include("../toys/magBalls/graph.js"); -Script.include("../toys/magBalls/edgeSpring.js"); -Script.include("../toys/magBalls/magBalls.js"); +Script.include("../entityScripts/magBalls/constants.js"); +Script.include("../entityScripts/magBalls/graph.js"); +Script.include("../entityScripts/magBalls/edgeSpring.js"); +Script.include("../entityScripts/magBalls/magBalls.js"); Script.include("avatarRelativeOverlays.js"); OmniToolModuleType = "MagBallsController" diff --git a/examples/toys/magBalls/constants.js b/examples/entityScripts/magBalls/constants.js similarity index 100% rename from examples/toys/magBalls/constants.js rename to examples/entityScripts/magBalls/constants.js diff --git a/examples/toys/magBalls/debugUtils.js b/examples/entityScripts/magBalls/debugUtils.js similarity index 100% rename from examples/toys/magBalls/debugUtils.js rename to examples/entityScripts/magBalls/debugUtils.js diff --git a/examples/toys/magBalls/edgeSpring.js b/examples/entityScripts/magBalls/edgeSpring.js similarity index 100% rename from examples/toys/magBalls/edgeSpring.js rename to examples/entityScripts/magBalls/edgeSpring.js diff --git a/examples/toys/magBalls/graph.js b/examples/entityScripts/magBalls/graph.js similarity index 100% rename from examples/toys/magBalls/graph.js rename to examples/entityScripts/magBalls/graph.js diff --git a/examples/toys/magBalls/magBalls.js b/examples/entityScripts/magBalls/magBalls.js similarity index 100% rename from examples/toys/magBalls/magBalls.js rename to examples/entityScripts/magBalls/magBalls.js diff --git a/examples/toys/AC_scripts/flickeringLight.js b/examples/toybox/AC_scripts/flickeringLight.js similarity index 100% rename from examples/toys/AC_scripts/flickeringLight.js rename to examples/toybox/AC_scripts/flickeringLight.js diff --git a/examples/toys/AC_scripts/originalPositionResetter.js b/examples/toybox/AC_scripts/originalPositionResetter.js similarity index 100% rename from examples/toys/AC_scripts/originalPositionResetter.js rename to examples/toybox/AC_scripts/originalPositionResetter.js diff --git a/examples/toys/AC_scripts/toybox_sounds.js b/examples/toybox/AC_scripts/toybox_sounds.js similarity index 100% rename from examples/toys/AC_scripts/toybox_sounds.js rename to examples/toybox/AC_scripts/toybox_sounds.js diff --git a/examples/toys/basketball/createHoop.js b/examples/toybox/basketball/createHoop.js similarity index 100% rename from examples/toys/basketball/createHoop.js rename to examples/toybox/basketball/createHoop.js diff --git a/examples/toys/basketball/createRack.js b/examples/toybox/basketball/createRack.js similarity index 100% rename from examples/toys/basketball/createRack.js rename to examples/toybox/basketball/createRack.js diff --git a/examples/toys/basketball/createSingleBasketball.js b/examples/toybox/basketball/createSingleBasketball.js similarity index 100% rename from examples/toys/basketball/createSingleBasketball.js rename to examples/toybox/basketball/createSingleBasketball.js diff --git a/examples/toys/blockers/createTestBlocks.js b/examples/toybox/blockers/createTestBlocks.js similarity index 100% rename from examples/toys/blockers/createTestBlocks.js rename to examples/toybox/blockers/createTestBlocks.js diff --git a/examples/toys/bubblewand/createWand.js b/examples/toybox/bubblewand/createWand.js similarity index 100% rename from examples/toys/bubblewand/createWand.js rename to examples/toybox/bubblewand/createWand.js diff --git a/examples/toys/bubblewand/wand.js b/examples/toybox/bubblewand/wand.js similarity index 100% rename from examples/toys/bubblewand/wand.js rename to examples/toybox/bubblewand/wand.js diff --git a/examples/toys/cat.js b/examples/toybox/cat/cat.js similarity index 100% rename from examples/toys/cat.js rename to examples/toybox/cat/cat.js diff --git a/examples/toys/doll/createDoll.js b/examples/toybox/doll/createDoll.js similarity index 100% rename from examples/toys/doll/createDoll.js rename to examples/toybox/doll/createDoll.js diff --git a/examples/toys/doll/doll.js b/examples/toybox/doll/doll.js similarity index 100% rename from examples/toys/doll/doll.js rename to examples/toybox/doll/doll.js diff --git a/examples/toys/flashlight/createFlashlight.js b/examples/toybox/flashlight/createFlashlight.js similarity index 100% rename from examples/toys/flashlight/createFlashlight.js rename to examples/toybox/flashlight/createFlashlight.js diff --git a/examples/toys/flashlight/flashlight.js b/examples/toybox/flashlight/flashlight.js similarity index 100% rename from examples/toys/flashlight/flashlight.js rename to examples/toybox/flashlight/flashlight.js diff --git a/examples/toys/lightSwitch.js b/examples/toybox/lights/lightSwitch.js similarity index 97% rename from examples/toys/lightSwitch.js rename to examples/toybox/lights/lightSwitch.js index 5c47108c94..fbd314a9af 100644 --- a/examples/toys/lightSwitch.js +++ b/examples/toybox/lights/lightSwitch.js @@ -17,7 +17,7 @@ (function () { var _this; - var utilitiesScript = Script.resolvePath("../libraries/utils.js"); + var utilitiesScript = Script.resolvePath("../../libraries/utils.js"); Script.include(utilitiesScript); LightSwitch = function () { _this = this; diff --git a/examples/toys/ping_pong_gun/createPingPongGun.js b/examples/toybox/ping_pong_gun/createPingPongGun.js similarity index 100% rename from examples/toys/ping_pong_gun/createPingPongGun.js rename to examples/toybox/ping_pong_gun/createPingPongGun.js diff --git a/examples/toys/ping_pong_gun/createTargets.js b/examples/toybox/ping_pong_gun/createTargets.js similarity index 100% rename from examples/toys/ping_pong_gun/createTargets.js rename to examples/toybox/ping_pong_gun/createTargets.js diff --git a/examples/toys/ping_pong_gun/pingPongGun.js b/examples/toybox/ping_pong_gun/pingPongGun.js similarity index 100% rename from examples/toys/ping_pong_gun/pingPongGun.js rename to examples/toybox/ping_pong_gun/pingPongGun.js diff --git a/examples/toys/ping_pong_gun/wallTarget.js b/examples/toybox/ping_pong_gun/wallTarget.js similarity index 100% rename from examples/toys/ping_pong_gun/wallTarget.js rename to examples/toybox/ping_pong_gun/wallTarget.js diff --git a/examples/toys/sprayPaintCan.js b/examples/toybox/spray_paint/sprayPaintCan.js similarity index 98% rename from examples/toys/sprayPaintCan.js rename to examples/toybox/spray_paint/sprayPaintCan.js index 1532ff19f3..4e6719af76 100644 --- a/examples/toys/sprayPaintCan.js +++ b/examples/toybox/spray_paint/sprayPaintCan.js @@ -13,7 +13,7 @@ // Script.include("../libraries/utils.js"); //Need absolute path for now, for testing before PR merge and s3 cloning. Will change post-merge - Script.include("../libraries/utils.js"); + Script.include("../../libraries/utils.js"); this.spraySound = SoundCache.getSound("https://s3.amazonaws.com/hifi-public/sounds/sprayPaintSound.wav"); diff --git a/unpublishedScripts/hiddenEntityReset.js b/unpublishedScripts/hiddenEntityReset.js index 19a7a5ee5e..e441db3aa6 100644 --- a/unpublishedScripts/hiddenEntityReset.js +++ b/unpublishedScripts/hiddenEntityReset.js @@ -14,14 +14,15 @@ var _this; - var sprayPaintScriptURL = Script.resolvePath("../examples/toys/sprayPaintCan.js"); - var catScriptURL = Script.resolvePath("../examples/toys/cat.js"); - var flashlightScriptURL = Script.resolvePath('../examples/toys/flashlight/flashlight.js'); - var pingPongScriptURL = Script.resolvePath('../examples/toys/ping_pong_gun/pingPongGun.js'); - var wandScriptURL = Script.resolvePath("../examples/toys/bubblewand/wand.js"); - var dollScriptURL = Script.resolvePath("../examples/toys/doll/doll.js"); - var lightsScriptURL = Script.resolvePath("../examples/toys/lightSwitch.js"); - var targetsScriptURL = Script.resolvePath('../examples/toys/ping_pong_gun/wallTarget.js'); + var sprayPaintScriptURL = Script.resolvePath("../examples/toybox/spray_paint/sprayPaintCan.js"); + var catScriptURL = Script.resolvePath("../examples/toybox/cat/cat.js"); + var flashlightScriptURL = Script.resolvePath('../examples/toybox/flashlight/flashlight.js'); + var pingPongScriptURL = Script.resolvePath('../examples/toybox/ping_pong_gun/pingPongGun.js'); + var wandScriptURL = Script.resolvePath("../examples/toybox/bubblewand/wand.js"); + var dollScriptURL = Script.resolvePath("../examples/toybox/doll/doll.js"); + var lightsScriptURL = Script.resolvePath("../examples/toybox/lights/lightSwitch.js"); + var targetsScriptURL = Script.resolvePath('../examples/toybox/ping_pong_gun/wallTarget.js'); + ResetSwitch = function() { _this = this; diff --git a/unpublishedScripts/masterReset.js b/unpublishedScripts/masterReset.js index 54f29b4259..956db41235 100644 --- a/unpublishedScripts/masterReset.js +++ b/unpublishedScripts/masterReset.js @@ -14,14 +14,14 @@ var utilitiesScript = Script.resolvePath("../examples/libraries/utils.js"); Script.include(utilitiesScript); -var sprayPaintScriptURL = Script.resolvePath("../examples/toys/sprayPaintCan.js"); -var catScriptURL = Script.resolvePath("../examples/toys/cat.js"); -var flashlightScriptURL = Script.resolvePath('../examples/toys/flashlight/flashlight.js'); -var pingPongScriptURL = Script.resolvePath('../examples/toys/ping_pong_gun/pingPongGun.js'); -var wandScriptURL = Script.resolvePath("../examples/toys/bubblewand/wand.js"); -var dollScriptURL = Script.resolvePath("../examples/toys/doll/doll.js"); -var lightsScriptURL = Script.resolvePath("../examples/toys/lightSwitch.js"); -var targetsScriptURL = Script.resolvePath('../examples/toys/ping_pong_gun/wallTarget.js'); + var sprayPaintScriptURL = Script.resolvePath("../examples/toybox/spray_paint/sprayPaintCan.js"); + var catScriptURL = Script.resolvePath("../examples/toybox/cat/cat.js"); + var flashlightScriptURL = Script.resolvePath('../examples/toybox/flashlight/flashlight.js'); + var pingPongScriptURL = Script.resolvePath('../examples/toybox/ping_pong_gun/pingPongGun.js'); + var wandScriptURL = Script.resolvePath("../examples/toybox/bubblewand/wand.js"); + var dollScriptURL = Script.resolvePath("../examples/toybox/doll/doll.js"); + var lightsScriptURL = Script.resolvePath("../examples/toybox/lights/lightSwitch.js"); + var targetsScriptURL = Script.resolvePath('../examples/toybox/ping_pong_gun/wallTarget.js');