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.