- Timestamp:
- 09/03/11 05:18:40 (13 years ago)
- Location:
- ps/trunk/binaries/data/mods/public/gui
- Files:
-
- 2 edited
-
common/functions_utility_music.js (modified) (3 diffs)
-
pregame/mainmenu.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ps/trunk/binaries/data/mods/public/gui/common/functions_utility_music.js
r7769 r10179 1 1 /* 2 2 DESCRIPTION : Audio functions (eg "pick a random sound from a list", "build a playlist") go here. 3 NOTES : 3 NOTES : 4 4 */ 5 5 … … 34 34 var randomSoundPath = "audio/music/" 35 35 break; 36 case " voice":36 case "effect": 37 37 randomSoundPath = soundPrePath + "/"; 38 38 break; … … 81 81 soundHandle.fade(0, finalGain, fadeDuration) 82 82 83 return true; 83 return true; 84 84 } 85 85 -
ps/trunk/binaries/data/mods/public/gui/pregame/mainmenu.js
r10165 r10179 28 28 // Offset the layers by oscillating amounts 29 29 var t = (t0 - new Date) / 1000; 30 var speed = 1/ 10;31 var off1 = 0. 10* w * (1+Math.cos(t*speed));32 var off2 = 0.1 8* w * (1+Math.cos(t*speed)) - h*6/9;33 var off3 = 0. 20* w * (1+Math.cos(t*speed));30 var speed = 1/20; 31 var off1 = 0.02 * w * (1+Math.cos(t*speed)); 32 var off2 = 0.12 * w * (1+Math.cos(t*speed)) - h*6/9; 33 var off3 = 0.16 * w * (1+Math.cos(t*speed)); 34 34 35 35 var left = screen.right - w * (1 + Math.ceil(screen.right / w)); … … 138 138 function openMenu(newSubmenu, position, buttonHeight, numButtons) 139 139 { 140 var menuSound = new Sound("audio/attack/weapon/arrowfly_24.ogg");140 var menuSound = new newRandomSound("effect", "arrowfly_", "audio/attack/weapon"); 141 141 if (menuSound) 142 142 {
Note:
See TracChangeset
for help on using the changeset viewer.
