- Corona SDK Mobile Game Development:Beginner's Guide
- Michelle M. Fernandez
- 173字
- 2021-08-06 19:59:41
Time for action – creating a Hello World application in two lines of code
Now that we have the simulator and text editors set up, let's start making our very first Corona program! The first program we will be making is called Hello World. It is a traditional program that many people learn when starting a new programming language.
- Open your preferred text editor and type the following lines:
textObject = display.newText( "Hello World!", 50, 40, native.systemFont, 36 ) textObject:setTextColor( 255,255,255)
- Next, create a folder on your desktop called
Hello World
. Save the preceding text as a file namedmain.lua
to the location of your project folder. - Launch Corona. You will be greeted with the Corona SDKscreen. Click on Simulator and navigate to the
Hello World
folder you just created. You should see yourmain.lua
file in this folder as shown in the following screenshot: - On Mac, click on the Open button. On Windows, select the
main.lua
file and click the Open button. You'll see your new program running in the Corona Simulator:
推薦閱讀
- 龍芯應用開發標準教程
- 電腦維護與故障排除傻瓜書(Windows 10適用)
- 電腦組裝與維修從入門到精通(第2版)
- 從零開始學51單片機C語言
- 電腦維護365問
- OpenGL Game Development By Example
- 筆記本電腦應用技巧
- 數字媒體專業英語(第2版)
- Blender Game Engine:Beginner's Guide
- 筆記本電腦維修技能實訓
- Corona SDK Mobile Game Development:Beginner's Guide
- 筆記本電腦現場維修實錄
- Learning Microsoft Cognitive Services
- FPGA進階開發與實踐
- Unreal Development Kit Game Programming with UnrealScript:Beginner's Guide