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

Working with Lua

In Chapter 1, Introduction to Lua, you learned how to set up Lua and Visual Studio Code. At the end of the chapter, we created a simple Hello World application. In this chapter, you will learn the basics of Lua programming. Topics such as variables, function data types, and loops are all going to be covered. By the end of this chapter, you should be familiar enough with Lua as a language to put together some simple programs.

If this is your first time programming, the syntax of Lua can get overwhelming fast. Many resources can be found on the official Lua site at  https://www.lua.org/. For a quick example of Lua, check out  http://tylerneylon.com/a/learn-lua/.

By the end of this chapter, you will will have a solid understanding of the following:

  • Using variables
  • Data types
  • Working with functions
  • Operators
  • Code blocks
  • Variable scope
  • Code flow
主站蜘蛛池模板: 华蓥市| 淮安市| 介休市| 磐石市| 庄河市| 南华县| 许昌市| 沅江市| 许昌县| 喀喇| 德保县| 含山县| 抚宁县| 陵川县| 海城市| 昭通市| 青铜峡市| 桂东县| 方山县| 伊宁县| 花莲县| 晋宁县| 怀宁县| 平谷区| 乌拉特中旗| 延寿县| 曲靖市| 闽侯县| 航空| 萨迦县| 民和| 石景山区| 新干县| 康马县| 三原县| 惠来县| 江川县| 廉江市| 钟山县| 驻马店市| 宜昌市|