Hello World!

這裡示範如何建立一個最簡單的 Corona 專案:Hello World!

  1. 建立專案資料夾

Local Image

  1. 在專案資料夾內建立 Corona SDK 進入點檔案: main.lua,並撰寫程式碼,這裏的編輯器使用的是 Atom.io,你可以選擇你喜歡的編輯器。
print("hello world")

Local Image

  1. 打開模擬器,開啟專案資料夾內的 main.lua

Local Image

Local Image

  1. 順利運行後,就會在輸出視窗內看到 hello world!

results matching ""

    No results matching ""