It is currently Thu Oct 18, 2018 4:06 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Fri Jan 27, 2006 5:12 am 
if you wanna make .incbin sprites.chr
.incbin bg.chr

sprites and bg must be 4 kb??

because 1 pattern table is 8kb max??.. then sprites and bg live in the same pattern table?????


Top
  
 
 Post subject:
PostPosted: Fri Jan 27, 2006 10:44 am 
Offline
User avatar

Joined: Fri Nov 12, 2004 2:49 pm
Posts: 7548
Location: Chexbres, VD, Switzerland
Both pattern tables are 4kb each. You can use them for BG or sprite as you wish, this is controlled by $2000.

_________________
Life is complex: it has both real and imaginary components.


Top
 Profile  
 
PostPosted: Fri Jan 27, 2006 11:32 am 
i was thinking that 1 pattern table was 8 kb!!

then .chr files are 8 kb because it contains 2 pattern tables????..
but when i transform chr to bmp i can only see 1 pattern table inside a .chr


Top
  
 
PostPosted: Fri Jan 27, 2006 1:42 pm 
Offline
User avatar

Joined: Fri Nov 12, 2004 2:49 pm
Posts: 7548
Location: Chexbres, VD, Switzerland
lord_chile wrote:
then .chr files are 8 kb because it contains 2 pattern tables????..

Yes, I think so. There is no size defined for .chr files. *.chr is just meaning that your file contains NES tiles, if you want. I have some .chr files for just 4 tiles, and some will take more than one pattern table with all tiles needed in a game/demo. When working with NROM/mapper 0 as you probably do now, you'll always have 8kb CHR with two constant pattern tables. When working with larger mappers, you can either swap pattern tables or part of pattern tables from a larger file contating all graphics called CHROM, or use CHRAM and write all tiles manually in your pattern tables, so tiles will have to be stored in your ROM as you wish and isn't forced to be stored in the same format/order you have to store it in the pattern tables.

_________________
Life is complex: it has both real and imaginary components.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group