This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Changeset 10179 for ps


Ignore:
Timestamp:
09/03/11 05:18:40 (13 years ago)
Author:
brian
Message:

Adjust main menu background scrolling speed and make submenu use random sounds when opening.

Location:
ps/trunk/binaries/data/mods/public/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/binaries/data/mods/public/gui/common/functions_utility_music.js

    r7769 r10179  
    11/*
    22    DESCRIPTION : Audio functions (eg "pick a random sound from a list", "build a playlist") go here.
    3     NOTES       : 
     3    NOTES       :
    44*/
    55
     
    3434            var randomSoundPath = "audio/music/"
    3535        break;
    36         case "voice":
     36        case "effect":
    3737            randomSoundPath = soundPrePath + "/";
    3838        break;
     
    8181    soundHandle.fade(0, finalGain, fadeDuration)
    8282
    83     return true;   
     83    return true;
    8484}
    8585
  • ps/trunk/binaries/data/mods/public/gui/pregame/mainmenu.js

    r10165 r10179  
    2828    // Offset the layers by oscillating amounts
    2929    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.18 * 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));
    3434
    3535    var left = screen.right - w * (1 + Math.ceil(screen.right / w));
     
    138138function openMenu(newSubmenu, position, buttonHeight, numButtons)
    139139{
    140         var menuSound = new Sound("audio/attack/weapon/arrowfly_24.ogg");
     140        var menuSound = new newRandomSound("effect", "arrowfly_", "audio/attack/weapon");
    141141    if (menuSound)
    142142    {
Note: See TracChangeset for help on using the changeset viewer.