I change NameTable value at pixel $00 from $00 to $04.
This now points at the # $04 tile instead of the # $00 tile.
Why does ALL of the tile change on screen instead of just the one pixel???
The whole 8x8 tile changes instead of just the top/left pixel on screen???
That's not completely possible.
Mode7 summary:
- one background of 128x128 tiles
- tilemap can select from 256 tiles --> tilemap is 128x128 bytes stored at even VRAM addresses (0, 2, 4, ...)
- a tile is 8x8 pixels in 256 colors, i.e. 64 bytes
- 256 tiles --> 16384 bytes stored at odd VRAM addresses (1, 3, 5, ...)
Changing the tilemap changes the tile displayed at the corresponding area.
Changing the tile will produce changes in
all tilemap entries using that tile.
I've read and undeerstand up to that part of the same document you got that info from. I guess I'm still a bit lost how the storage works. Thanks for the help BTW...
Ok..
0 2 4 6 8 A C E = Map data
1 3 5 7 9 B D F = Tile data.
This is where I believe I am getting lost.
128x128 Name table entries... ok,
the other 128x128 ( Odd ) BYTE entries are what??
Char data or pixels??? It should be pixels, correct?
From what I understand...
// Vram[$00] = Pixel's location
// Vram[$01] = Pixel's Color index into Pal register
I changed an EVEN value ( Nametable entry ) and a Tile changed... Like it would a normal tile map / gfx formula...
My question is what is the ODD value pointing at if it's NOT a pixel
because when one EVEN value is changed, the 8x8 tile ONSCREEN changes.
I have like 2 starnds of hair left.
Thanks for the help...
Oh yeah, of course everything in Vram is clear! Nothing exist other than
the Map/GFX data...