Space problems with graphics

This is an archive of a topic from NESdev BBS, taken in mid-October 2019 before a server upgrade.
View original topic
Space problems with graphics
by on (#205347)
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?
Re: Space problems with graphics
by on (#205349)
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.
Re: Space problems with graphics
by on (#205365)
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?
Re: Space problems with graphics
by on (#205366)
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.
Re: Space problems with graphics
by on (#205390)
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: