Language…
9 users online:  Ayami,  Fyre150, jferrerfaj, Metro Shroomin, MorrieTheMagpie, Pottsie, Shinmaru, SiliconFish, Zavok - Guests: 252 - Bots: 121
Users: 70,845 (2,353 active)
Latest user: BeeBoo190

JukeboxBlock v1.1

SMW Blocks → JukeboxBlock v1.1

Submission Details

Name: JukeboxBlock v1.1
Author: AlesN0w
Added:
Act As: 25
Includes GFX: Yes
Description: This is a jukebox block. It changes the currently playing music each time the player presses UP or DOWN. You can configure which songs the jukebox will play and also how many songs it can cycle through (maximum of 30).

By default, it is set to play 20 songs (I did this for those who want to use it without AddMusic). The jukebox will go through all the songs as the player presses UP, then it will return to the music that was playing in the level (you need to configure which music will be playing in the level).

You can use this jukebox without AddMusic, but I recommend installing AddMusic at least once in your hack before using it, since AddMusic changes the Hex values of the songs after installation.

It comes with graphics and a GPS list, but you can draw your own graphics if you want. Set "Act as" to 25 for the jukebox.

For more information on how to customize the jukebox, check the Readme.

I hope you all enjoy it!

Update JukeboxBlock v1.1:

Added the function to go back to previous songs by pressing DOWN, suggested by "HammerBrother". Readme updated.
Tags: music music box
Comments: 14 (jump to comments)
Rating:
5.0 (3 ratings)
No rating
Download 6.28 KiB | 67 downloads

Screenshots

Comments (14)

Heitor Porfirio Link
What a interesting block! Congrats, AlesN0w! #smrpg{y}
redstoneblock Link
Wow this is cool
Brutapode89 Link
To make sure 100 musics can be added, must we turn the byte 14 inside the .asm file to 64?
AlesN0w Author Link
If you're talking about the "HowManySongsToPlay", in theory that's exactly it, but you'll also need to add the songs to the list and table manually. It's not difficult, since the logic behind the jukebox is pretty simple to understand. You just need to add to the list and table: !music31, !music32... and so on. I designed the jukebox to be very intuitive to customize.
 binavik Link
Updated for SA-1 compatibility, removed unnecessary freeram usage, removed some unnecessary JMP instructions.
Tested with Lunar Magic 3.51, asar 1.91, GPS 1.4.4, AMK 1.0.11 and SA1 1.40.

Fun little block, I can see this working well for something of a break area in a hack. Also for hack creators that may want to listen to all their songs in a row, for audio leveling if they were to do that. Quite useful.

There are a few more spots for some additional, albeit minor, optimizations. Nothing worth rejecting over but if you were curious as to what these were feel free to reach out.
AlesN0w Author Link
I’d love to know what they were, if you don’t mind.
zAce08xZ Link
Cool #smw{:TUP:}
Romiori Link
very foda my friend
Enan63 Link
About time an ASM block that selects different songs to play in stage is here!
HammerBrother Link
I was thinking of adding a DOWN feature to cycle through the tracks in the opposite direction.
AlesN0w Author Link
Great idea, I'll add this when I have some time. I should have thought of that.
P1JDS Link
It's fun to use #smrpg{cool}
Cristian Cardoso Link
this is do balacobaco my friend
Gloomyerr_ Link
First to test approved!! xD
The ale is from balacobaco my friend
#smw{:TUP:}