It is currently Fri Dec 15, 2017 2:59 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Fri Sep 29, 2017 4:07 am 
Offline

Joined: Thu Nov 24, 2011 7:16 am
Posts: 170
I have a doubt:

Do I think metasprites to compose maps of my games, they occupy more or less space than if I think maps with NEStoolScreen and keep each screen with RLE?


Top
 Profile  
 
PostPosted: Fri Sep 29, 2017 4:29 am 
Offline
User avatar

Joined: Fri May 08, 2015 7:17 pm
Posts: 1868
Location: DIGDUG
Should you use Screen Tool to compress level data?

Depends on your data.

If there are lots of repeats, yes. If very few repeats? No.

_________________
nesdoug.com -- blog/tutorial on programming for the NES


Top
 Profile  
 
PostPosted: Fri Sep 29, 2017 10:45 am 
Offline

Joined: Thu Nov 24, 2011 7:16 am
Posts: 170
Ok.

On the other hand, I'm testing and it seems that there is a limit of up to 64 metasprites in the same array to compose scenarios.

Is this possible?


Top
 Profile  
 
PostPosted: Fri Sep 29, 2017 11:13 am 
Offline
User avatar

Joined: Fri May 08, 2015 7:17 pm
Posts: 1868
Location: DIGDUG
Oh, you're talking about the "metasprite" tool in NES Screen Tool.

If the problem is, the "metasprite bank" has a max of 64 arrays. You can put each individual metasprite seperarately. Then the question is, how does your code find the correct metasprite? Each character could have an array of constant pointers to each of his metasprite animations.

_________________
nesdoug.com -- blog/tutorial on programming for the NES


Top
 Profile  
 
PostPosted: Sat Sep 30, 2017 3:45 am 
Offline

Joined: Thu Nov 24, 2011 7:16 am
Posts: 170
No. The problem is already solved after passing me all afternoon yesterday to investigate, but you explained:

I need to do various backgrounds to form a map. These background are static. There is no scroll, it is therefore relatively easy.

To save space, instead of creating background to the gross with NEStoolScreen, what I do is to create a background with all the tiles I need, etc... to create metatiles. With this background, I do two things:
- The first is to save it in BMP format and then the program Tiled, I think maps. These maps return me an array that identifies in that position must go every metatile.
- Secondly the background of metatiles which had been created in NEStoolScreen save it the format .h uncompressed, which returns an array of metatiles to me but disordered. Then with a small tool that I've done in javascript transformed this array in another that has ordered the metatiles of 16x16 as I need them.

The problem that had yesterday was that they left me in total about 104 metatiles, and only read me the first 64. Solve it transforming the variables for use in INT format. They were previously as CHAR.

Now work.

:wink:


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

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 4 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