Size of Images
doug_smuppet
Member Posts: 99
Hi, I have another doubt.
To I make a background image for my scene (level 1), I need make just a image, for example this imagem of Sonioc (http://info.sonicretro.org/images/2/26/Ghz1.PNG). it's a big image.. 10.240×1.280 pixels... I need make like this?
To I make a background image for my scene (level 1), I need make just a image, for example this imagem of Sonioc (http://info.sonicretro.org/images/2/26/Ghz1.PNG). it's a big image.. 10.240×1.280 pixels... I need make like this?
Comments
In your example ('Sonioc’?) the game layout is not one big image . . . it is just one tree + one 'ground' block + 1 piece of flat grass + 1 piece of sloping grass . . . . etc etc
Like Lego ! A few small images arranged to make a big layout - rather than one big image.
so... if I need an image of 5000x900px. I need to do at least 3 images, or I can make 5 images of 1000x900px and placing side by side, that's it?
But . . . .
iOS holds image data in certain sized 'chunks' of memory, like this . . .
16 - 32 - 64 - 128 - 256 - 512- 1024 . . . etc etc
. . . it will use up the smallest amount of memory it can fit your image into.
So if you give it / It will use:
124 / 128
125 / 128
126 / 128
127 / 128
128 / 128
129 / 256
. . . etc
So if you give it / It will use:
508 / 512
509 / 512
510 / 512
511 / 512
512 / 512
513 / 1024
514 / 1024
. . . . . .
So if you want to save memory and keep performance high try and keep our images within these memory sizes:
this is it?
Best practice for me is draw the whole level on a big board to see how it will look like and then think of the tiles and how it should be implemented.
My question is if I can make each image for each level in size 5000x1000 px .. for ipad
Check the following link at your own risk
--This one it will show you what I mean by tiles images:
http://www.photonstorm.com/wp-content/uploads/2011/09/Image-Tileset.png
if you will go with 1 big image it will not be as flexible as tiles, with tiles you can make as many levels as you want