History

Update tutorial to work with HMD + Hand Controllers only

Ryan Huffman committed 10 years ago

Commit 216cf2b1 parent 66a33d015 files · +116 −33Browse files

Showing the changes to tutorial/tutorialZone.js (1 of 15 files). Show all

Unified · Split

tutorial/tutorialZone.js+15−11
@@ -27,8 +27,10 @@ if (!Function.prototype.bind) { · 26 unmodified lines
2727 }
2828
2929 (function() {
30− Script.include("ownershipToken.js");
31− Script.include("tutorial.js");
30+ var ownershipTokenPath = Script.resolvePath("ownershipToken.js");
31+ var tutorialPath = Script.resolvePath("tutorial.js");
32+ Script.include(ownershipTokenPath);
33+ Script.include(tutorialPath);
3234
3335 var TutorialZone = function() {
3436 this.token = null;
@@ -37,17 +39,19 @@ if (!Function.prototype.bind) { · 2 unmodified lines
3739 TutorialZone.prototype = {
3840 keyReleaseHandler: function(event) {
3941 print(event.text);
40− if (event.text == ",") {
41− if (!this.tutorialManager.startNextStep()) {
42+ if (event.isShifted && event.isAlt) {
43+ if (event.text == ",") {
44+ if (!this.tutorialManager.startNextStep()) {
45+ this.tutorialManager.startTutorial();
46+ }
47+ } else if (event.text == "F11") {
48+ this.tutorialManager.restartStep();
49+ } else if (event.text == "F10") {
50+ MyAvatar.shouldRenderLocally = !MyAvatar.shouldRenderLocally;
51+ } else if (event.text == "r") {
52+ this.tutorialManager.stopTutorial();
4253 this.tutorialManager.startTutorial();
4354 }
44− } else if (event.text == "F11") {
45− this.tutorialManager.restartStep();
46− } else if (event.text == "F10") {
47− MyAvatar.shouldRenderLocally = !MyAvatar.shouldRenderLocally;
48− } else if (event.text == "r") {
49− this.tutorialManager.stopTutorial();
50− this.tutorialManager.startTutorial();
5155 }
5256 },
5357 preload: function(entityID) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t