Lua Study Notes 3: Use CoronaSDK, luacronasdk

Source: Internet
Author: User
Tags corona sdk

Lua Study Notes 3: Use CoronaSDK, luacronasdk
Introduction

CoronaSDK is a mobile game engine that supports iOS and Android platforms. It mainly uses Lua and comes with sdks.

Windows:
Http://developer.coronalabs.com/downloads/coronasdk

Installation and Use

After installation, the simulator will automatically open.
Create a new file main. lua under D:/app.

Print ("Hello World ")

Output

The Output can only be seen in the Output.

Next, call a function to display the output content on the mobile interface:

Local textObject = display. newText ("Hello World", 50, 50, nil, 24) textObject: setTextColor (255,255,255)

Output:

The installation directory contains some examples.

C: \ Program Files (x86) \ Corona Labs \ Corona SDK \ Sample Code

Editor

I downloaded Sublime Text3 as the default Lua editor.

Next time, I will take the time to learn how to use lua to make a simple little game.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.