Forum Replies Created
-
AuthorPosts
-
Hi there and many thanks. To clarify even more what I want to achieve I have attached a screenshot.
- Let’s assume I want to use landscape format.
- I never want to stretch anything in only one axis (so no distortion but proportional scaling of course)
- I don’t want to have black borders anywhere
Let’s also assume a virtual resolution of 512×288 (for this example!). This is a 16:9 aspect ratio. On devices using this ratio they will always see my background image of 512×288 stretched to the native resolution of course.
For devices like iPads the visible size would be 384×288 of that background image. So the remaining 128 pixel of that background would simply not be visible but cropped. Scaling is always done using the y axis ratio. So when the native resolution of the device is 768×576, my background image would be scaled up to 1024×576 but cropped so that only 768×576 would be visible.
Is there a way to get the native resolution? Width and Height return my virtual resolution using the letterbox Layout.
Attachments:
Would gles1.0 not even be a bigger market?
(just kidding)
Am I really the only one having this issue? How do you solve that for all these different aspect ratios? I prefer to have a fixed virtual resolution but with a floating x or y size so that parts of the background are cropped.
Is that something could be addressed somehow? Apparently the heuristics of many antivirus scanners tell me that Monkey apps are dangerous. lol
That is not an issue for me but as soon as I want to ship a game created with MX2 this can lead to serious trouble.
Thanks guys!
Awesome, thanks!
I second that.
BTW: I’ve seen that there are two kinds of multidimensional arrays?
Monkey12Local arr1[,] = New Int[10,10]Local arr2[][] = New Int[][10]Why is that?
So how can I init a 2d array?
Monkey1234567Global map:Int[,]map = New Int[10,10]'Now I'd like to fill that array line by line, something like:map[,0] = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ] 'doesn't work obviously but how can I achieve that?map[,1] = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ]edit: Found the solution: http://monkey2.monkey-x.com/forums/topic/way-to-predefineinline-define-an-array-of-arrays/
No, doesn’t work either. Unfortunately there is no example in the bananas section and the documentation is almost non existent…
Thanks, yes could be. I’ve tried that as well, but it didn’t work either.
Looks awesome, just installing…
edit: I think it would be better if you use SMART_BANNER instead of standard banner for the ads. Looks way better in landscape mode then!
Oh come on guys, even low spec hardware can nowadays run the more than 4 years old gles3 stuff.
Yes, go for gles3. I mean it will take probably a year or so to create that 3d module and in a year those numbers will improve even more into the direction of gles3 support.
Ya I know what you mean and I tend to agree. Even gles30 is already 4 years old and supported since Android 4.3 when it comes to mobile devices so let’s see what Mark says. I mean there must be a reason behind using gles20 probably?
Can we leave out politics please? Otherwise I don’t see why “Hillary-I want WW 3 with Russia-Clinton” should be better than “Donald-America first-Trump”.
-
AuthorPosts
