Differences

This shows you the differences between the selected revision and the current
version of the page.


wmelite:ios 2011/09/03 14:24 wmelite:ios 2012/01/21 13:37 current
Line 34: Line 34:
===== iOS notes ===== ===== iOS notes =====
 +
==== Multitasking and auto-save ==== ==== Multitasking and auto-save ====
-Since version 4, iOS supports multitasking and applications can choose whether they want or don't want to support it. WME Lite deliberately doesn't support multitasking. The reason is, that the underlaying SDL graphics library currently doesn't cope well with returning to a running application. It means, that when the user presses the Home button, the WME Lite game is terminated. However, before being terminated, it's possible to instruct WME Lite to save the current game. That way the player can resume playing when they start the game again.+Since version 4, iOS supports multitasking and applications can choose whether they want or don't want to support it. WME Lite does support multitasking. However, the way multitasking works in iOS means that the application can be terminated at any moment when it's running in the background (when the OS needs more resources, inactive apps are removed from memory). When the application goes to background (typically when the user presses the Home button), it should save its state, so that it can be seamlessly restored later. In case of WME Lite it means a saved game should be created. That way the player can resume playing when they start the game again.
The iOS version of WME Lite provides two scripting properties that control this behavior: The iOS version of WME Lite provides two scripting properties that control this behavior:
Line 59: Line 60:
As noted in the [[fonts]] chapter, if your game uses TrueType fonts, you must distribute all the fonts with the game. WME Lite is not able to use preinstalled system fonts in iOS. As noted in the [[fonts]] chapter, if your game uses TrueType fonts, you must distribute all the fonts with the game. WME Lite is not able to use preinstalled system fonts in iOS.
 +
==== Resolution ==== ==== Resolution ====
-WME Lite always uses the largest resolution of a given device and scales all graphics. If the aspect ratio differs, the image is letterboxed. The game runs always in landscape mode and screen rotating currently isn't supported.+WME Lite always uses the largest resolution of a given device and scales all graphics. If the aspect ratio differs, the image is letterboxed. The game runs always in landscape mode and screen rotation is supported.
The original iOS devices use resolution 480x320. The new "retina" displays used in iPhone 4 and iPod Touch 4 use double resolution, 960x640. iPad and iPad 2 use resolution 1024x768. The original iOS devices use resolution 480x320. The new "retina" displays used in iPhone 4 and iPod Touch 4 use double resolution, 960x640. iPad and iPad 2 use resolution 1024x768.
 
wmelite/ios.1315052671.txt.gz · Last modified: 2011/09/03 14:24 by Mnemonic
Recent changes RSS feed Creative Commons License Driven by DokuWiki