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