This is all with v1075.
The first problem is associated with the now deprecated splash screen. I removed AGKSplash.png file, created my own (for now a test page) and added this code to the top of my main.agc file, before anything else:
SetVirtualResolution(960,640)
SetDisplayAspect(1.5)
SetOrientationAllowed(0,0,1,0)
spl_img = LoadImage("/media/mysplash.png")
spl_spr = CreateSprite(spl_img)
SetSpritePosition(spl_spr,0,0)
sync()
On Mac, the loading happens so fast that the first thing I see is the next 'loading' display. On Windows, I get a brief white screen, followed by "mysplash.png" showing briefly, followed by my main menu.
On android, I get a black screen for a couple of seconds, then "mysplash.png" appears.
On the iOS devices, I get the Default-landscape.png page, followed by a second of white screen, followed by a couple of seconds of black screen. The "mysplash.png" file never appears. I have tried it with and without "/media/" and with "media/" in the load and it doesn't work any way.
The second problem is related to orientation. The game I'm developing really depends on the orientation being kept in landscape and not flipping to any other, including the other landscape.
We finally got this working correctly on the Android device I had (and hopefully helping everyone else with an odd ball android device with the next release).
In the code I explicitly set the allowed orientation 3 (as indicated in the first problem): SetOrientationAllowed(0,0,1,0)
This should force only landscape where you rotate to the left from normal portrait.
Within my Xcode 4 project, I specifically only allow one orientation, rotated left, with the menu button ending up on the right. And just to confuse everyone, Xcode calls this 'Landscape Right'. I assume it is because that is where the menu button ends up.
I was showing the current state of the game to my hubby on my iPod Touch and when I tilted it severely away from me, it flipped to to the other landscape, orientation 4. And I could not get it to flip back the other way.
At that point, the values for the accelerometer still reported as if it was orient 3. But the button locations behaved properly, so I could cleanly exit the app.
I tried changing the xcode setting to the other landscape only, and that only confused it further. The app started one way, flipped the other, and then flipped when tilted.
When both the code and the xcode setup specify exactly one orientation, it should not allow any other.
That problem is not insignificant. It occurred on all three iOS devices I tested on: iPod Touch, iPad2 and iPad3 (my hubby lets me use is device for testing).
The third problem is when I use the exit button on my app to exit. The game display disappears and a black screen shows up. And then it takes 30-40 seconds before the black screen disappears and the app menu page appears. If I use the menu button during the black screen, I get back to the menu okay. But when I click on my app again, it is still in black screen mode.
This only occurs on iOS devices. The android device shows a black screen for a second or two.
Cheers,
Ancient Lady