Songs script

Plays songs in singleplayer or based on number of players

As of 2019-06-11. See the latest version.

نووسەر
Jstris Customization Database
Ratings
0 0 0
وەشان
0.1
Created
2019-06-11
Updated
2019-06-11
Size
5.13 KB
مۆڵەت
نییە
Applies to

■ Songs are set to T99 songs but can be changed to anything else.
■ var songThresholds = [1, 0.6, 0.2] means that the first song will play at the start of the game, the second song will play when there are 60% of players remaining, and the third song will play when there are 20% of players remaining.
■ Change the amount of songs playing by adding or removing values in this line: var songThresholds = [1, 0.6, 0.2] The amount of songs in var songs should match amount of values.
■ Music works in singleplayer modes as well
■ To adjust volume of music, go to Settings → Appearance → and set the Music vol sliders to your liking. MP stands for multiplayer, SP for singleplayer.
■ Music plays for all singleplayer modes by Default, but to play the music only on Sprint modes, change the "false" in this line to "true": Game['onlySprint'] = false;