DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
The Latest "Software Integration: The Intersection of APIs, Microservices, and Cloud-Based Systems" Trend Report
Get the report
  1. DZone
  2. Coding
  3. Frameworks
  4. How to Develop an App Using the Corona Framework

How to Develop an App Using the Corona Framework

This quick tutorial will show you how to make a basic mobile application with the Corona cross-platform mobile development kit.

Yogesh Jain user avatar by
Yogesh Jain
·
Jun. 21, 17 · Tutorial
Like (1)
Save
Tweet
Share
7.30K Views

Join the DZone community and get the full member experience.

Join For Free

corona sdk is a software development kit that lets developers create graphic cross-platform apps (for ios and android) using lua on top of c++/opengl. corona makes it very easy to roll out cross-platform games and graphic-intensive apps. it even includes a physics engine.

here's a tutorial on how to develop a simple application using the corona framework. this is just the beginning. the sdk provides many advanced features as well using which you can create amazing and addictive apps and games.

requirements

download and install the corona sdk .

there are many ide’s for working with the corona sdk. some good ones are

  • corona project manager (cpm).
  • luaglider.
  • corona complete.

install one of these ides.

creating a simple app with luaglider

step 1

launch the luaglider window. tap on the new project icon (top left corner) and the window will look like this:

cross platform development using corona framework

click next. give the project name, project location, and project folder. click finish and the window will look like this:

how to develop simple application using corona framework

step 2

once you complete step 1, the project window should look like this:

cross platform development- corona framework

corona applications may be configured through two optional lua files, which should be saved to the project folder along with the main.lua file:

  • config.lua: handles global content scaling and alignment for multiple screens.
  • build.settings: handles build options like the screen resolutions and the setting of info.plist values for ios and/or application permissions for android.

now, select main.lua and write these lines:

local textobject = display.newtext("hello corona !!", 0, 0, native.systemfont, 40)  --
textobject.x = display.contentwidth / 2
textobject.y = display.contentwidth / 4
textobject:settextcolor(255,255,255)

best mobile application developers corona framework

conventions used in the above code:

  • local is used for creating local objects.

  • display.newtext is for inserting text along with font name and font size.

  • textobject.x is the distance from the left side.

  • textobject.y is the distance from the top.

step 3

build and run: tap on the run icon (top left corner).

output:

cross platform development using corona framework

Corona (software) app Framework

Published at DZone with permission of Yogesh Jain. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Assessment of Scalability Constraints (and Solutions)
  • Solving the Kubernetes Security Puzzle
  • Keep Your Application Secrets Secret
  • Testing Level Dynamics: Achieving Confidence From Testing

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: