luaa

luaa

环境安装

安装 VScode

进入官网 下载最新版本的 VScode,傻瓜式安装。

本人英语很差,安装好软件之后的第一步要先来个汉化。

image-20211103202514651

安装好汉化包后重启 VsCode。

image-20211103211503950OK

安装 Lua Debug 插件

image-20211103211725654

安装好插件之后,新建 Lua 文件测试环境。

动画

可以成功打印 “Hello Lua” ,说明环境没有问题,接下来可以学习 Lua 的基本语法了。

如果你不能成功打印,你可以试试重启 VScode,也可以留言告诉我问题,或者多看看别人的其他教程

基本语法

菜鸟教程

Environment Setup

Install VScode

Download the latest version of VScode from the official website and install it with the default settings.

My English is quite poor, so the first step after installing the software is to localize it to Chinese.

image-20211103202514651

After installing the language pack, restart VScode.

image-20211103211503950OK

Install the Lua Debug Extension

image-20211103211725654

After installing the extension, create a new Lua file to test the environment.

动画

If it successfully prints “Hello Lua”, the environment is fine, and you can move on to learning Lua’s basic syntax.

If you can’t print it successfully, you can try restarting VScode, or leave a comment telling me about the problem, or check out other people’s other tutorials.

Basic Syntax

See the Runoob Tutorial