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

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
主站蜘蛛池模板: 广丰县| 奉新县| 涿州市| 大连市| 河北省| 唐海县| 石楼县| 太仆寺旗| 依安县| 芜湖县| 福州市| 准格尔旗| 明星| 自贡市| 拉萨市| 西安市| 扬中市| 深州市| 石阡县| 桂东县| 封丘县| 萝北县| 钦州市| 昆山市| 琼结县| 北京市| 贵溪市| 团风县| 桂东县| 泾川县| 清河县| 呼伦贝尔市| 清涧县| 门头沟区| 岑溪市| 华亭县| 洛浦县| 保定市| 天津市| 鸡泽县| 峨眉山市|