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

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
主站蜘蛛池模板: 德惠市| 平湖市| 郴州市| 南充市| 伽师县| 云梦县| 彝良县| 鄱阳县| 漳浦县| 临海市| 修武县| 讷河市| 施秉县| 长沙市| 龙州县| 长沙市| 宜春市| 天镇县| 宁夏| 定陶县| 邹平县| 穆棱市| 津市市| 榆社县| 名山县| 内黄县| 宜川县| 莱阳市| 灵寿县| 平阳县| 简阳市| 东城区| 福贡县| 温州市| 黄梅县| 洪洞县| 常德市| 姜堰市| 乐业县| 新疆| 库伦旗|