Neocities.org

Black Mage Gaming

blackmagegaming.com

63,196 views
69 followers
2,729 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 2 months ago

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

blackmagegaming 2 months 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 2 days ago
CreatedMar 6, 2023
Site Traffic Stats

Tags

videogames coding rpg blackmage programming