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

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.

主站蜘蛛池模板: 天气| 湘潭市| 丹寨县| 涟源市| 共和县| 宜君县| 孟州市| 沭阳县| 西青区| 平凉市| 白水县| 邹平县| 罗城| 台东市| 台东县| 马关县| 安达市| 商城县| 花莲县| 科技| 雅江县| 肥城市| 房产| 南涧| 田东县| 北安市| 贵州省| 崇仁县| 获嘉县| 仪陇县| 丁青县| 永宁县| 拉萨市| 巩留县| 锦州市| 文成县| 黑龙江省| 师宗县| 镇赉县| 双牌县| 保康县|