Hi all,
I'm loving WCK so far with my little bit of mucking about but was wondering if anyone has any advice on how best to tackle positioning of BodyShapes on screen so that they will be optimised for different screen resolutions.
For example, say a game on Device A, which has a low resolution of 320x240, required a box stuck to the very left of screen, one stuck to the top and another to the far right.
Then on Device B which has a much higher resolution of 960x640 and also a different aspect ratio, we also want the same box positions relative to the device full screen resolution.
Or taking the WCK demo FLA worlds, how would these be modified in order to make them utilize the full width and height of any given device?
Since WCK is using the IDE as a layout tool with absolute positions would it be best to :
1) layout this example scenario in some sort of common, middle-ground resolution (if so what would this be?) and then via code, reposition all elements according the current devices resolution?
2) Or possibly only use WCK to create each element in the Library but not lay them out visually and leave this positioning to code?
There's a good chance I've entirely overlooked something more obvious and easy so feel free to virtually roll your eyes at me - I can take it.
Also, as an aside, I noticed that Box2D uses a World scale of 30 and the WCK Demo seems to use 60 in it's Worlds. Is there a reason for this, does it make any difference or am I just being paranoid?
Thanks heaps
I'm loving WCK so far with my little bit of mucking about but was wondering if anyone has any advice on how best to tackle positioning of BodyShapes on screen so that they will be optimised for different screen resolutions.
For example, say a game on Device A, which has a low resolution of 320x240, required a box stuck to the very left of screen, one stuck to the top and another to the far right.
Then on Device B which has a much higher resolution of 960x640 and also a different aspect ratio, we also want the same box positions relative to the device full screen resolution.
Or taking the WCK demo FLA worlds, how would these be modified in order to make them utilize the full width and height of any given device?
Since WCK is using the IDE as a layout tool with absolute positions would it be best to :
1) layout this example scenario in some sort of common, middle-ground resolution (if so what would this be?) and then via code, reposition all elements according the current devices resolution?
2) Or possibly only use WCK to create each element in the Library but not lay them out visually and leave this positioning to code?
There's a good chance I've entirely overlooked something more obvious and easy so feel free to virtually roll your eyes at me - I can take it.
Also, as an aside, I noticed that Box2D uses a World scale of 30 and the WCK Demo seems to use 60 in it's Worlds. Is there a reason for this, does it make any difference or am I just being paranoid?
Thanks heaps