官术网_书友最值得收藏!

Time for action – modifying our application

Before we dive into more complex examples, let's alter some minor things in your program.

  1. Let's alter the second line of main.lua to display as follows:
    textObject = display.newText( "Hello World!", 50, 40, native.systemFont, 36 )
    textObject:setTextColor( 124,252,0 )
    
  2. Save your file and go back to the CoronaSimulator. The simulator will detect a change from your file and automatically re-launch with the new changes. If the simulator doesn't re-launch automatically upon saving your file, press Command + R (Mac)/Ctrl + R (Windows).
    Time for action – modifying our application

    Note

    As you continue learning more Corona functions, you'll notice that some of the text values will be optional. In this case, we need to use all five values.

主站蜘蛛池模板: 双牌县| 沭阳县| 日喀则市| 金寨县| 博客| 鹤庆县| 陆河县| 奈曼旗| 鹤山市| 泾川县| 江永县| 万全县| 芜湖县| 长武县| 库伦旗| 通河县| 九龙县| 宝应县| 廉江市| 阳山县| 城固县| 宾川县| 东莞市| 都江堰市| 门源| 中超| 恭城| 安宁市| 攀枝花市| 双流县| 商洛市| 丁青县| 游戏| 石景山区| 曲沃县| 特克斯县| 六枝特区| 社旗县| 英超| 长寿区| 繁昌县|