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
27}27}
28 28
29(function() {29(function() {
30 Script.include("ownershipToken.js");30 var ownershipTokenPath = Script.resolvePath("ownershipToken.js");
31 Script.include("tutorial.js");31 var tutorialPath = Script.resolvePath("tutorial.js");
32 Script.include(ownershipTokenPath);
33 Script.include(tutorialPath);
32 34
33 var TutorialZone = function() {35 var TutorialZone = function() {
34 this.token = null;36 this.token = null;
@@ -37,17 +39,19 @@ if (!Function.prototype.bind) { · 2 unmodified lines
37 TutorialZone.prototype = {39 TutorialZone.prototype = {
38 keyReleaseHandler: function(event) {40 keyReleaseHandler: function(event) {
39 print(event.text);41 print(event.text);
40 if (event.text == ",") {42 if (event.isShifted && event.isAlt) {
41 if (!this.tutorialManager.startNextStep()) {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();
42 this.tutorialManager.startTutorial();53 this.tutorialManager.startTutorial();
43 }54 }
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();
51 }55 }
52 },56 },
53 preload: function(entityID) {57 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