CORONA DEFAULT SETTINGS

July 18, 2011 9:36 am 350 comments

Share this Article

Author:

My Corona SDK Quick Reference Items

Credit this page  to  Fully Croisend

As I stumbled upon his website and cut and pasted these notes as I too had all this written in 22 different places files and documents
 This is just a quick list of reminders and tips that I look at when working on a project…I have these printed out, scribbled and post-it noted all over my desk so i figured I would make this post and clean up my workspace along the way.  You might find them useful…or not. :)

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)
Base config.lua file:  (This is my basis for supporting Dynamic Image Resolution )
application =
{
content =
{
width = 320,
height = 480,
scale = “zoomStretch”,
fps=60,
imageSuffix =
{
   ["@1x"] = 1.5,
["@2x"] = 2,
["@3x"] = 2.4,
}
}
}
Base build.settings file:
settings =
{
    android =
    {
      versionCode = “1″
    },
orientation =
{
default = “portrait”,
supported =
{
“portrait”,
},
},
        iphone =
        {
                plist =
                {
                        UIPrerenderedIcon = true,
                        UIApplicationExitsOnSuspend = true,
                        CFBundleIconFile = “Icon.png”,
CFBundleIconFiles = {
  “Icon.png”,
  “Icon@2x.png”,
  “Icon-72.png”,
},
                },
        }
}

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.

Leave a Reply


Other News

  • Uncategorized ADIOS XP ~ How do we live without you?

    ADIOS XP ~ How do we live without you?

    Microsoft XP & Office 2003 End of Life is April 8, 2014 Microsoft Official Link Wow! how many XP systems have I installed over the life of MS XP operating system? Laptops ~ Desktops New out of box, rebuilds,  crashes, updates,  patches, restores and last chance disaster recovery  before burning. By design and as I look around  my work area,  I have created several very reliable XP computers with dedicated  and isolated applications as well as a couple of builds [...]

    Read more →
  • Uncategorized

    Lua Coding Tips Sheet

    Working with the insertion into IOS programming first challenge was to sort through  all the different code. I now have a library of  books on C,  C+, Objective C, and Lua All Similar All Different The main thing (I have found)  to move between each programming language is the ability to forget or separate  one syntax and pickup another. This is my Lua Quick Reference coding Tips sheet for review when I need a jump start In doing serious brain [...]

    Read more →
  • Uncategorized

    CORONA DEFAULT SETTINGS

    My Corona SDK Quick Reference Items Credit this page  to  Fully Croisend As I stumbled upon his website and cut and pasted these notes as I too had all this written in 22 different places files and documents  This is just a quick list of reminders and tips that I look at when working on a project…I have these printed out, scribbled and post-it noted all over my desk so i figured I would make this post and clean up [...]

    Read more →
  • Uncategorized

    Journal into Writing and IOS iPhone or Android App

    Made the decision to sink my teeth  (and my time)  into developing IOS and Android Apps. Why??? Lots of reasons but the main is it is where the fun is and also where the money is at and it challenges my change button. A little background on myself is I have been in the Computer /App industry for many years now. Have seen/witnessed  many trends and the ones that have the paradigm  shifts are the ones to watch. Thing is [...]

    Read more →
  • Uncategorized

    REXP

    Welcome to REXP This is the very first post. Time to  start blogging!

    Read more →