Users browsing this thread: 2 Guest(s)
Mass Sprite Sheet Expansion Battle & NPC

#57
Posts: 676
Threads: 44
Thanks Received: 26
Thanks Given: 21
Joined: Jan 2015
Reputation: 11
Status
Zombie
Only some of it, already have a portrait list #112 long and a palette list with #112 palettes to match as of 6am this morning.

That being said, your idea of using the sprite ID should work as well, (maybe even better) but the math seems to work out just redirecting it to the new list (takes whatever the palette number is from the list and multiplies it to create an offset). Only real problem that showed up with the vanilla math was the portrait offset table only has a 2 byte adress which only leaves room for about 82 or so portraits (normally that would be plenty wouldn't it? LOL) Anyway, as is, as long as it doesn't overflow somewhere if I try to load sprite #104 it should work. Since stuff like Owzer, theBlackjack, and the two-top and bottom halves of monsters that Odin meets in the flash back have no practical or semi-practical use for a portrait, I plan on using 81 portraits filling one bank, and save the last for a shadowed sprite filler, just in case, so it still won't display glitched pixels.

In other words, can't justify changing the code to read a 3 byte address. Worst case could probably check the sprite ID and branch to one of two tables for two banks worth of portraits but... don't see it being needed.

What I still find interesting is that the palettes for portraits are still 16 colors, but load 2 bytes at a time meaning 32byte color palettes for portraits (still 16colors though).

Sprites still load 1 byte a pass though. (This based on watching the debugger for a few hours and the fact that dropping 16 bytes at an address for a portrait palette leaves nasty results.

Also don't get why it sometimes uses the direct address at C3/7000 and another time it sets the bank independantly, and adds the $1D00 to the value from the table. A few other times it just accesses it directly. Either way other than several pointer changes, having them start at an even bank of 51/ for portraits, 52/ for palettes. Could still do something stupid like have battle palettes listed at 53/ (which will load battle palette #41 from there...) but thats a whole other deal.


The only true wisdom is knowing you know nothing.
  Find
Quote  



Messages In This Thread
RE: Mass Sprite Sheet Expansion Battle & NPC - by Catone - 12-12-2015, 12:51 PM

Forum Jump:

Users browsing this thread: 2 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite