PDA

View Full Version : A sprite tile viewer



city41
12-09-2018, 11:07 AM
I've started learning to program the Neo. I decided to take a little detour and whip up a little sprite tile viewer now that I understand the format.

https://city41.github.io/neospriteviewer/

No practical value, but fun to play with.

Here is what RBFF C5/C6 looks like

https://i.imgur.com/DF9hNEY.png

StevenK
12-09-2018, 11:29 AM
I have no idea what this means.

How you been bud?

city41
12-09-2018, 01:26 PM
How you been bud?

Pretty good! Insanely busy so haven't been around much. But trying to fix that. How about yourself?

Hine62
12-14-2018, 12:53 PM
Interesting, nice job! I was able to see my c roms perfectly. All you need now is to include the palettes.

ForeverSublime
12-14-2018, 10:44 PM
Awesome. Keep up the cool work :)

/Subscribed to thread.

city41
12-17-2018, 02:00 PM
Interesting, nice job! I was able to see my c roms perfectly. All you need now is to include the palettes.

Thanks! Palettes are tough since they are loaded into RAM at runtime. Fun challenge though.

city41
12-25-2018, 11:48 PM
Added support for fix tiles from S roms. Just choose an S file instead of C files.

Here is Metal Slug's fix tiles

https://i.imgur.com/pxX9tB6.png

Hine62
12-27-2018, 08:03 AM
Works great! I was able to see my complete S rom. Nice job.

city41
12-27-2018, 01:08 PM
Thanks! I originally built this just for fun, but I'm starting to find it useful. So I will probably keep improving it. I just added the tile indices

https://i.imgur.com/8SYEV7t.png

Eventually I'll improve the performance of it so it can load an entire tile set from large roms (currently capped at 1024 tiles), but since my homebrew stuff is so small that isn't that important to me (yet).

city41
12-28-2018, 09:26 PM
Doh, just realized I had a bad bug this whole time. I was accidentally reading the C1 ROM twice, so at most a tile had 4 colors :eek_2:

That is now fixed. That also made it clear a greyscale palette is not good enough, so now it's an alternating blue/yellow palette.

Also if you click on a tile, you can see it in detail

https://i.imgur.com/Iz9bTF1.png