Showing the changes to tutorial/tutorial.js (1 of 1 file). Show all
Unified · Split
| @@ -344,8 +344,8 @@ function playFirecrackerSound(position) { · 343 unmodified lines | ||
| 344 | 344 | // STEP: DISABLE CONTROLLERS // |
| 345 | 345 | // // |
| 346 | 346 | /////////////////////////////////////////////////////////////////////////////// |
| 347 | −var stepStart = function(name) { | |
| 348 | − this.tag = name; | |
| 347 | +var stepStart = function() { | |
| 348 | + this.tag = "start"; | |
| 349 | 349 | } |
| 350 | 350 | stepStart.prototype = { |
| 351 | 351 | start: function(onFinish) { |
| @@ -402,8 +402,7 @@ function reenableEverything() { · 50 unmodified lines | ||
| 402 | 402 | // // |
| 403 | 403 | /////////////////////////////////////////////////////////////////////////////// |
| 404 | 404 | |
| 405 | −var stepEnableControllers = function(name) { | |
| 406 | − this.tag = name; | |
| 405 | +var stepEnableControllers = function() { | |
| 407 | 406 | this.shouldLog = false; |
| 408 | 407 | } |
| 409 | 408 | stepEnableControllers.prototype = { |
| @@ -446,9 +445,9 @@ stepWelcome.prototype = { · 36 unmodified lines | ||
| 446 | 445 | // STEP: Orient and raise hands above head // |
| 447 | 446 | // // |
| 448 | 447 | /////////////////////////////////////////////////////////////////////////////// |
| 449 | −var stepOrient = function(name) { | |
| 450 | − this.tag = name; | |
| 451 | − this.tempTag = name + "-temporary"; | |
| 448 | +var stepOrient = function() { | |
| 449 | + this.tag = "orient"; | |
| 450 | + this.tempTag = "orient-temporary"; | |
| 452 | 451 | } |
| 453 | 452 | stepOrient.prototype = { |
| 454 | 453 | start: function(onFinish) { |
| @@ -500,8 +499,8 @@ stepOrient.prototype = { · 45 unmodified lines | ||
| 500 | 499 | // // |
| 501 | 500 | /////////////////////////////////////////////////////////////////////////////// |
| 502 | 501 | var stepNearGrab = function(name) { |
| 503 | − this.tag = name; | |
| 504 | − this.tempTag = name + "-temporary"; | |
| 502 | + this.tag = "nearGrab"; | |
| 503 | + this.tempTag = "nearGrab-temporary"; | |
| 505 | 504 | this.birdIDs = []; |
| 506 | 505 | |
| 507 | 506 | Messages.subscribe("Entity-Exploded"); |
| @@ -572,9 +571,9 @@ stepNearGrab.prototype = { · 64 unmodified lines | ||
| 572 | 571 | // STEP: Far Grab // |
| 573 | 572 | // // |
| 574 | 573 | /////////////////////////////////////////////////////////////////////////////// |
| 575 | −var stepFarGrab = function(name) { | |
| 576 | − this.tag = name; | |
| 577 | − this.tempTag = name + "-temporary"; | |
| 574 | +var stepFarGrab = function() { | |
| 575 | + this.tag = "farGrab; | |
| 576 | + this.tempTag = "farGrab-temporary"; | |
| 578 | 577 | this.finished = true; |
| 579 | 578 | this.birdIDs = []; |
| 580 | 579 | |
| @@ -675,11 +674,11 @@ PositionWatcher.prototype = { · 94 unmodified lines | ||
| 675 | 674 | // STEP: Equip // |
| 676 | 675 | // // |
| 677 | 676 | /////////////////////////////////////////////////////////////////////////////// |
| 678 | −var stepEquip = function(name) { | |
| 679 | − this.tag = name; | |
| 680 | − this.tagPart1 = name + "-part1"; | |
| 681 | − this.tagPart2 = name + "-part2"; | |
| 682 | − this.tempTag = name + "-temporary"; | |
| 677 | +var stepEquip = function() { | |
| 678 | + this.tag = "equip"; | |
| 679 | + this.tagPart1 = "equip-part1"; | |
| 680 | + this.tagPart2 = "equip-part2"; | |
| 681 | + this.tempTag = "equip-temporary"; | |
| 683 | 682 | this.PART1 = 0; |
| 684 | 683 | this.PART2 = 1; |
| 685 | 684 | this.PART3 = 2; |
| @@ -809,9 +808,9 @@ stepEquip.prototype = { · 123 unmodified lines | ||
| 809 | 808 | // STEP: Turn Around // |
| 810 | 809 | // // |
| 811 | 810 | /////////////////////////////////////////////////////////////////////////////// |
| 812 | −var stepTurnAround = function(name) { | |
| 813 | − this.tag = name; | |
| 814 | − this.tempTag = name + "-temporary"; | |
| 811 | +var stepTurnAround = function() { | |
| 812 | + this.tag = "turnAround"; | |
| 813 | + this.tempTag = "turnAround-temporary"; | |
| 815 | 814 | |
| 816 | 815 | this.onActionBound = this.onAction.bind(this); |
| 817 | 816 | this.numTimesSnapTurnPressed = 0; |
| @@ -895,9 +894,9 @@ stepTurnAround.prototype = { · 77 unmodified lines | ||
| 895 | 894 | // STEP: Teleport // |
| 896 | 895 | // // |
| 897 | 896 | /////////////////////////////////////////////////////////////////////////////// |
| 898 | −var stepTeleport = function(name) { | |
| 899 | − this.tag = name; | |
| 900 | − this.tempTag = name + "-temporary"; | |
| 897 | +var stepTeleport = function() { | |
| 898 | + this.tag = "teleport"; | |
| 899 | + this.tempTag = "teleport-temporary"; | |
| 901 | 900 | } |
| 902 | 901 | stepTeleport.prototype = { |
| 903 | 902 | start: function(onFinish) { |
| @@ -955,9 +954,9 @@ stepTeleport.prototype = { · 51 unmodified lines | ||
| 955 | 954 | // STEP: Finish // |
| 956 | 955 | // // |
| 957 | 956 | /////////////////////////////////////////////////////////////////////////////// |
| 958 | −var stepFinish = function(name) { | |
| 959 | − this.tag = name; | |
| 960 | − this.tempTag = name + "-temporary"; | |
| 957 | +var stepFinish = function() { | |
| 958 | + this.tag = "finish"; | |
| 959 | + this.tempTag = "finish-temporary"; | |
| 961 | 960 | } |
| 962 | 961 | stepFinish.prototype = { |
| 963 | 962 | start: function(onFinish) { |
| @@ -1010,15 +1009,15 @@ TutorialManager = function() { · 46 unmodified lines | ||
| 1010 | 1009 | // If Script.generateUUID is not available, default to an empty string. |
| 1011 | 1010 | tutorialID = Script.generateUUID ? Script.generateUUID() : ""; |
| 1012 | 1011 | STEPS = [ |
| 1013 | − new stepStart("start"), | |
| 1014 | − new stepOrient("orient"), | |
| 1015 | − new stepNearGrab("nearGrab"), | |
| 1016 | − new stepFarGrab("farGrab"), | |
| 1017 | − new stepEquip("equip"), | |
| 1018 | − new stepTurnAround("turnAround"), | |
| 1019 | − new stepTeleport("teleport"), | |
| 1020 | − new stepFinish("finish"), | |
| 1021 | − new stepEnableControllers("enableControllers"), | |
| 1012 | + new stepStart(), | |
| 1013 | + new stepOrient(), | |
| 1014 | + new stepNearGrab(), | |
| 1015 | + new stepFarGrab(), | |
| 1016 | + new stepEquip(), | |
| 1017 | + new stepTurnAround(), | |
| 1018 | + new stepTeleport(), | |
| 1019 | + new stepFinish(), | |
| 1020 | + new stepEnableControllers(), | |
| 1022 | 1021 | ]; |
| 1023 | 1022 | wentToEntryStepNum = STEPS.length; |
| 1024 | 1023 | for (var i = 0; i < STEPS.length; ++i) { |