Adding blocks to SMBUtility

Are you new to 6502, NES, or even programming in general? Post any of your questions here. Remember - the only dumb question is the question that remains unasked.

Moderator: Moderators

Post Reply
alpdrucken
Posts: 16
Joined: Sat Nov 23, 2019 9:30 pm

Adding blocks to SMBUtility

Post by alpdrucken » Mon Dec 30, 2019 1:04 pm

I would like to add "vertical line of coins" to SMBUtility, since I changed the coin behaviour and using 1 block for a whole column makes you waste fewer blocks. I know how to add a new block in game, since I only need to add a pointer at $9667 and then just write this routine somewhere:

Code: Select all

AC 4E 07				ldy AreaType            ;get area type
B9 EE 99				lda CoinMetatileData,y  ;load appropriate coin metatile
4C 5F 9A				jmp GetRow2
The problem is that I'd like to add a new object to SMBUtility and I dont quite know how; looking at its code here https://github.com/Maseya/SMB-Utility/b ... data.c#L52 you can see that every item has 5 sets of values, but I don't know how these are determined.
This line is for horizontal coins so maybe it could be similar to what I need:

Code: Select all

STRING_OBJDATA_MAP_B_20, 0x70, 0x40, 0x01, 0x0F, -1, STRING_EMPTY
Any idea how this works?

Post Reply