- 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:
推薦閱讀
- 觸摸屏實(shí)用技術(shù)與工程應(yīng)用
- ATmega16單片機(jī)項(xiàng)目驅(qū)動(dòng)教程
- Linux KVM虛擬化架構(gòu)實(shí)戰(zhàn)指南
- 計(jì)算機(jī)應(yīng)用與維護(hù)基礎(chǔ)教程
- 精選單片機(jī)設(shè)計(jì)與制作30例(第2版)
- 電腦維護(hù)365問(wèn)
- VCD、DVD原理與維修
- CC2530單片機(jī)技術(shù)與應(yīng)用
- 固態(tài)存儲(chǔ):原理、架構(gòu)與數(shù)據(jù)安全
- 單片機(jī)系統(tǒng)設(shè)計(jì)與開(kāi)發(fā)教程
- 單片機(jī)開(kāi)發(fā)與典型工程項(xiàng)目實(shí)例詳解
- 筆記本電腦維修實(shí)踐教程
- LPC1100系列處理器原理及應(yīng)用
- STM32自學(xué)筆記
- 單片微機(jī)原理及應(yīng)用