Hi ,
I've got started testing , how is to possible to create an universal (iOS, Android for multiple screens ) apps in Gideros.
Well, I tried to set the document properties in:
Letterbox
Pixel Perfect
and now testing No Scale- Top Left option
I want to try doing in the Landscape mode, and create the graphics for all screen sizes.
I read several articles regarding the topic, both here on Csdk, but have not led to a thing of all.
My attempts are quite disappointing and confusing.
I thought starting with the highest resolution, the retina iPad, also the graphics and in Gideros.
with these settings :
letterbox
320x480
1536x2048
letterbox
480x320
2048x1536
I noticed if i set the stage 2048x1536 or 1536x2048 and set in landscape mode in any case my objects viewed in oriental mode.And in this case the scale proportions it's very different.
Letterbox:
I thinked is a better solution because I don't do other calculations with the proportion and etc..
But ad example in my test, iPhone and iPhone hires have got the lateral white space, and if I test for android my result it is a really disaster.
Pixel Perfect:
I think it is good, but only if i do for iOS and not universal apps.
In this case the background images viewed well, but view also for iPhone and iPad same images , in this case I think I should doing the bigger images for bg (because accept only integer scale), and in this case the proportions will be more screwed.
Asks:
Why the y =0 to start to scaled screen position, and not a real area?
How can I calculate the correct positions if I want x= 0 and 0=y or other positions?
It is a good idea to start to bigger resolution , or I should to start to little?
How can I set the correct sizes (width , height) of my graphic objects, included the background ?
Why if I use landscape mode the the stage width and height are reversed, and the object width and height are the good sizes?
What is the better practices?
How it is to possible to create the real universal apps ?
Sorry for the a lot of asks, but I proved for some weeks without success.
I attach my big_to_little example.
Comments
You may find this article useful. You can grab the scaling being used to still position things to always be top left (0,0 like you were saying) etc.
One less thing, from my questions
With this solution I can adapt also the background.
I controlled in photoshop and the bg scaled 1.128, I would create the dynamic solution , but working yet on it , actually I don't have any idea how it is possible to calculate this percentual 1.128.
Anyway this code working perfectly for iOS.
[-O<
So I think small -> big is the better solution also performance wise
iTunes: http://itunes.com/apps/glennbacon
Amazon: http://www.amazon.com/s/ref=bl_sr_mobile-apps?_encoding=UTF8&node=2350149011&field-brandtextbin=Glenn Bacon
Thanks @glennbjr , I watched that article and I read same articles in guiders CSDK, Flash +Starling .
Unfortunatelly CSDK and in Flash use other settings, and design solutions.
And I don't found similar articles from Gideros, with the design guide and demonstration and sources, what I found for Gideros only technical description , but for me it's really long from to find the solution how create the good design interface (and including programming solution: you can see on the top @Zvardin suggestion )
By the way, I think it's a real good solution how publish there the articles it's really suggestive Description+code + video demonstration
Well, my left questions, how can I doing for Android without create hundred images for any resolution.
And how can I scale for android my background similar solution how I did for iOS.
Someone has source for Android, or the solution how is it to possible to calculate , in this case I can set the position example bottom-center .
Thanks a lot.
Thank you