Re: api extensions: api discussion
Posted: Fri Nov 18, 2011 2:36 am
A perfect project would include a simple set of tests at load that would determine:
Is the game running on a PC/Mac or is it on a mobile device like a phone or tablet?
If on mobile, what is the native resolution? What other features does the device support? Will it support the features you need? Are there workarounds for devices that don't?
If on Mobile, does it have a keyboard that is physical or on-screen? If physical, allow using keys for input. If not, provide on-screen buttons to perform the commands.
Will your game be rotatable? Or static to either landscape or portrait? If rotatable, offer a callback, much like the Focus callback which accepts true or false for whether the window is focused or not, that will rearrange everything when the orientation changes. Will it accept it in degrees like iOS where it can be 0, 90, 180 or 270, or just "is landscape", "is portrait".
Is the game running on a PC/Mac or is it on a mobile device like a phone or tablet?
If on mobile, what is the native resolution? What other features does the device support? Will it support the features you need? Are there workarounds for devices that don't?
If on Mobile, does it have a keyboard that is physical or on-screen? If physical, allow using keys for input. If not, provide on-screen buttons to perform the commands.
Will your game be rotatable? Or static to either landscape or portrait? If rotatable, offer a callback, much like the Focus callback which accepts true or false for whether the window is focused or not, that will rearrange everything when the orientation changes. Will it accept it in degrees like iOS where it can be 0, 90, 180 or 270, or just "is landscape", "is portrait".