I am trying to make a game, I am using sprites which are 10x32. I was wondering how many of them could i use without running out of memory.
I have 7 different pics for moving left, 7 for moving right, 5 for up and 5 for down, that is all without masks. Is there enough emory for me to create the masks or will i have to cut down on the number of sprites. So far that is all for one character.
How many sprites?
i'm guessing thousands. you have 64k of memory to use. in my rpg engine i have a double buffer, 4 maps, up to 10 sprite sets, 4 tilesets, all without running out of space, so i think you will have enough space.
truth be told, we don't know how much. use the command:
fre(-1) to find out how much free space you have.
truth be told, we don't know how much. use the command:
fre(-1) to find out how much free space you have.
There are ways around that...
I'm using a 32MB world map, and over 2200 tiles, all of which are 64x64...
Not counting the sprites, which range from 32x32 to 128x128...
Only loading the needed psrites into memory is the trick.
Like... you don't need the LAVA tile, when you're in the smiths house, do you? (Unless there's lava in there, which i doubt)
I'm using a 32MB world map, and over 2200 tiles, all of which are 64x64...
Not counting the sprites, which range from 32x32 to 128x128...
Only loading the needed psrites into memory is the trick.
Like... you don't need the LAVA tile, when you're in the smiths house, do you? (Unless there's lava in there, which i doubt)
We were talking about sprites in conv. mem.
I use EMS (or XMS) too for storing sprites, and I'm also storing thousands of them in it easily
But, you're right. I only don't use it often for my games, I usually load tiles separately each level. Each level file contains a 'tileset' flag which indicates which tile packets to load.
I use EMS (or XMS) too for storing sprites, and I'm also storing thousands of them in it easily
lol I have lava in my house... (huh? do I? )Z!re wrote:Like... you don't need the LAVA tile, when you're in the smiths house, do you? (Unless there's lava in there, which i doubt)
But, you're right. I only don't use it often for my games, I usually load tiles separately each level. Each level file contains a 'tileset' flag which indicates which tile packets to load.