Neocities.org

Black Mage Gaming

blackmagegaming.com

52,694 views
59 followers
2,151 updates
0 tips
I have SUCCESSFULLY finished the random music player for my collection pages. It's currently implemented on the NES and SNES pages, you can view them from here: https://blackmagegaming.com/collection
1 like
ralphsdigitalrecord 3 weeks ago

This is super cool! What method did you choose for this?

blackmagegaming 3 weeks ago

@ralphsdigitalrecord I created every audio tag, gave them appropriate IDs, then put them in a JS Array, then generated a random number and modulo'd the number to the size of the array, then played the number it gave. When the music ends, it runs the random player function again. The stop button simply pauses every audio tag, and the new song button pauses every audio tag, then runs the random song function.

Website Stats

Last updated 5 hours ago
CreatedMar 6, 2023
Site Traffic Stats

Tags

videogames coding rpg blackmage programming