Users browsing this thread: 1 Guest(s)
Advice Wanted

#4
Posts: 3,971
Threads: 279
Thanks Received: 238
Thanks Given: 58
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
(07-07-2013, 12:07 PM)GProst Wrote: I don't understand how it works. Well I see that in 1 byte there are 2 pixels (4bpp), but how do tiles create? This is how I guess it works: we've got random palette with 16 colors, 1 byte corresponding to 2 pixels going in the row, 8x8 tiles (32 bytes in each) and each tile may contain 16 different colors max. And when I open ROM in Tile Layer or Tile Molester I can find tiles which containing looks of characters, so how is it happened? If these programs compare bytes with pixels from the beginning of ROM file there would be 1/32 chance that 8x8 tile will display correctly (bytes would be displaced), am I wrong?

You got most of it right. If I understand your question, the code will read the tile data from a starting offset that is exactly where the tile is starting. A tile is nothing more than 32 consecutive bytes and the game construct a 8x8 bitmap or graphic with those bytes.

(07-07-2013, 12:07 PM)GProst Wrote: OK, second. I thought tile consist of 32 bytes going in the row, and after one tile has been created only then we go to the next...smth like that =) But in The Molester there are buttons "Byte Forward" and "Byte Back" and when I click it I do not understand what's going on...so how is it work?

Usually graphics strat at a round offset (0x20, 0x40, 0x60, etc..). This is perfect because Graphics viewers like TileMolester scroll down in jumps of 0x20, 0x80 , 0x100 depending which button you press. If you got a tile starting at 0x00005E, the graphic will look disrupted and by click on the byte forward (or backward) you can get exactly on 0x00005E and the graphic will then look normal. These two buttons can be handy sometimes.
  Find
 



Messages In This Thread
Advice Wanted - by Altair - 06-08-2013, 02:19 PM
RE: Advice Wanted - by madsiur - 06-09-2013, 01:09 AM
RE: Advice Wanted - by Altair - 07-07-2013, 12:07 PM
RE: Advice Wanted - by madsiur - 07-07-2013, 12:40 PM
RE: Advice Wanted - by Altair - 07-07-2013, 04:47 PM
RE: Advice Wanted - by madsiur - 07-07-2013, 05:36 PM
RE: Advice Wanted - by Altair - 07-08-2013, 10:36 AM
RE: Advice Wanted - by madsiur - 07-08-2013, 07:14 PM
RE: Advice Wanted - by Altair - 07-08-2013, 07:59 PM
RE: Advice Wanted - by madsiur - 07-08-2013, 08:04 PM
RE: Advice Wanted - by Altair - 07-08-2013, 08:42 PM
RE: Advice Wanted - by madsiur - 07-08-2013, 09:36 PM
RE: Advice Wanted - by Altair - 07-08-2013, 09:58 PM
RE: Advice Wanted - by madsiur - 07-09-2013, 09:44 AM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite