History

hifi-production tutorials -> vircadia-content

Kalila L committed 6 years ago

Commit 46ddde01 parent dc554bb17 files · +38 −38Browse files

Showing the changes to scripts/tutorials/entity_scripts (5 of 17 files). Show all

Unified · Split

5 files
  1. scripts/tutorials/entity_scripts/cow.js +1 −1
  2. scripts/tutorials/entity_scripts/golfClub.js +1 −1
  3. scripts/tutorials/entity_scripts/pingPongGun.js +1 −1
  4. scripts/tutorials/entity_scripts/pistol.js +5 −5
  5. scripts/tutorials/entity_scripts/soundMaker.js +1 −1
scripts/tutorials/entity_scripts/cow.js+1−1
@@ -19,7 +19,7 @@ · 18 unmodified lines
1919 //set our id so other methods can get it.
2020 _this.entityID = entityID;
2121 //load the mooing sound
22− _this.mooSound = SoundCache.getSound("http://hifi-production.s3.amazonaws.com/tutorials/cow/moo.wav")
22+ _this.mooSound = SoundCache.getSound("https://cdn-1.vircadia.com/us-e-1/Developer/Tutorials/cow/moo.wav")
2323 _this.mooSoundOptions = {
2424 volume: 0.7,
2525 loop: false
scripts/tutorials/entity_scripts/golfClub.js+1−1
@@ -13,7 +13,7 @@ · 12 unmodified lines
1313
1414 (function() {
1515 var ball = null;
16− var collisionSoundURL = "http://hifi-production.s3.amazonaws.com/tutorials/golfClub/collision1.wav";
16+ var collisionSoundURL = "https://cdn-1.vircadia.com/us-e-1/Developer/Tutorials/golfClub/collision1.wav";
1717 var triggerState = false;
1818 var BALL_GRAVITY = -9.8;
1919 var BALL_START_VELOCITY = 0.1;
scripts/tutorials/entity_scripts/pingPongGun.js+1−1
@@ -12,7 +12,7 @@ · 11 unmodified lines
1212 (function() {
1313 var _this = this;
1414
15− var SHOOTING_SOUND_URL = 'http://hifi-production.s3.amazonaws.com/tutorials/pingPongGun/pong_sound.wav';
15+ var SHOOTING_SOUND_URL = 'https://cdn-1.vircadia.com/us-e-1/Developer/Tutorials/pingPongGun/pong_sound.wav';
1616
1717 function PingPongGun() {
1818 return;
scripts/tutorials/entity_scripts/pistol.js+5−5
@@ -30,8 +30,8 @@ · 29 unmodified lines
3030 this.forceMultiplier = 1;
3131 this.laserLength = 100;
3232
33− this.fireSound = SoundCache.getSound("http://hifi-production.s3.amazonaws.com/tutorials/pistol/GUN-SHOT2.raw");
34− this.ricochetSound = SoundCache.getSound("http://hifi-production.s3.amazonaws.com/tutorials/pistol/Ricochet.L.wav");
33+ this.fireSound = SoundCache.getSound("https://cdn-1.vircadia.com/us-e-1/Developer/Tutorials/pistol/GUN-SHOT2.raw");
34+ this.ricochetSound = SoundCache.getSound("https://cdn-1.vircadia.com/us-e-1/Developer/Tutorials/pistol/Ricochet.L.wav");
3535 this.playRichochetSoundChance = 0.1;
3636 this.fireVolume = 0.2;
3737 this.bulletForce = 10;
@@ -220,7 +220,7 @@ · 182 unmodified lines
220220 "alphaStart": 0,
221221 "alphaFinish": 0,
222222 "additiveBlending": true,
223− "textures": "http://hifi-production.s3.amazonaws.com/tutorials/pistol/star.png"
223+ "textures": "https://cdn-1.vircadia.com/us-e-1/Developer/Tutorials/pistol/star.png"
224224 });
225225
226226 Script.setTimeout(function() {
@@ -270,7 +270,7 @@ · 43 unmodified lines
270270 "alphaStart": 0,
271271 "alphaFinish": 0,
272272 "additiveBlending": 0,
273− "textures": "http://hifi-production.s3.amazonaws.com/tutorials/pistol/smoke.png"
273+ "textures": "https://cdn-1.vircadia.com/us-e-1/Developer/Tutorials/pistol/smoke.png"
274274 });
275275 Script.setTimeout(function() {
276276 Entities.editEntity(smoke, {
@@ -333,7 +333,7 @@ · 56 unmodified lines
333333 "alphaStart": 0,
334334 "alphaFinish": 0,
335335 "additiveBlending": true,
336− "textures": "http://hifi-production.s3.amazonaws.com/tutorials/pistol/star.png"
336+ "textures": "https://cdn-1.vircadia.com/us-e-1/Developer/Tutorials/pistol/star.png"
337337 });
338338 Script.setTimeout(function() {
339339 Entities.editEntity(flash, {
scripts/tutorials/entity_scripts/soundMaker.js+1−1
@@ -8,7 +8,7 @@ · 7 unmodified lines
88
99 (function(){
1010
11− var soundURL ='http://hifi-production.s3.amazonaws.com/tutorials/soundMaker/bell.wav';
11+ var soundURL ='https://cdn-1.vircadia.com/us-e-1/Developer/Tutorials/soundMaker/bell.wav';
1212 var ringSound;
1313
1414 this.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