CORONA DEFAULT SETTINGS
My Corona SDK Quick Reference Items
Credit this page to Fully Croisend
Screen Sizes Background sizing
The iOS platform has these caracteristics:
- iPad: 1024x768px, 132 ppi
- iPhone/iPod Touch: 320x480px, 163 ppi
- iPhone 4: 960x640px, 326 ppi
Because Android is an open platform, there are many different devices and resolutions. A few of the more common screen characteristics are:
- Nexus One: 480x800px, 254 ppi
- Droid: 854x480px, 265 ppi
- HTC Legend: 320x480px, 180 ppi
Common Screen Resolutions (Portrait)
iPod Touch – 320×480
iPhone 3G – 320×480
iPhone 4G – 640×960
iPad – 768×1024
iPad2 -
Droid Incredible – 480×800
Droid X – 480×854
Evo – 480×800
XOOM – 800×1280
Gestures to account for, or not: Tap, Drag, Flick, Swipe, Double Tap, Pinch Open, Pinch Close, Touch and Hold, Shake
Apple recommended minimum tappable size of a UI item: 44×44 points
Icons needed to support an Apple and Android deployment – (Start at a 512×512 image size, because you are going to need this for app submission, make all these smaller ones from that so you don’t end up with a blurry/stretched 512×512 when you are all done – or used SVG or vector of course)
- Icon@2x.png (114×114)
- Icon-72.png (72×72)
- Icon-hdpi.png (72×72)
- Icon.png (57×57)
- Icon-mdpi.png (48×48)
- Icon.ldpi.png (36×36)
Some optimization tips:
Color is set in RGB Value xxx,xxx,xxx –there is a hexvalue routine also
LUA Coding Tips on Variables (Suggested Format)
- In general variables will start with a lower case
- Names of functions will start with an upper case
- Parameters will start with an underscore
- Every new word inside a name of a variable will have an upper case letter. This is due to readability.
- Functions are variables that are doing something when they are called
- Tables are variables storing other variables inside them.
