scene dimensions

digitalzerodigitalzero Member, BASIC Posts: 639

so im creating a game a side scroller where the dimensions are 500 x 3000 it was initially 4000 but there was some major lag... i know you got to import the scene with a certain size you know the whole 64 x 64 dealio... what would be a good size for this scene... and does anyone know the math so i can do this for future refrences?

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    edited December 2014

    @digitalzero said:
    so im creating a game a side scroller where the dimensions are 500 x 3000 it was initially 4000 but there was some major lag...

    There should be no difference between a 3,000 pixel wide/high scene and a 4,000 pixel wide/high scene, changing the scene size should have no impact on how the game runs. I'm working on a game that is 10,240 x 13,209 pixels and it runs just fine on an old iPad 1 and 2 - of course what is in the scene will have an impact on performance, but not the scene size itself.

    @digitalzero said:
    i know you got to import the scene with a certain size you know the whole 64 x 64 dealio...

    Importing scenes ? :o :) Not 100% what you mean, but there is no scene importing in GameSalad ??

    @digitalzero said:
    what would be a good size for this scene...

    For this scene the ideal size would be 500 x 4,000 because that's the size you originally wanted it to be ! :smile:

    @digitalzero said:
    and does anyone know the math so i can do this for future references?

    I think you might be mixing up the powers-of-2 rule (the whole 64 x 64 dealio) with scene sizes, they are not related . . . image sizes should ideally conform to the powers-of-2 rule so they make efficient use of RAM, but it's not set in stone, if your images break this rule then your game is not going to blow up (unless it's specially a game about blowing stuff up), it will just make a less efficient use of the RAM (and processor cycles).

    The scene size is something else entirely, it's just (in my own way of thinking) a description of the limits of available co-ordinates, so whereas a 400 x 400 pixel image will take up more RAM than a 100 x 100 pixel actor . . a 20,000 pixel by 20,000 pixel scene will take up no more RAM than a 200 x 200 pixel scene.

    Like I say I'm working on a 10,240 x 13,209 pixel game, and there are much more brave souls out there working on even bigger canvases without running into trouble.

Sign In or Register to comment.