foreword
Game projects are mostly developed using Lua. I use it for the first time and need to configure the lua environment
Refer to the existing articles on the Internet, choose this as an example, and record your own installation process.
Equipment environment
vscode
Although C# was written on rider and vs before, vscode, as the first editor in the universe, supports almost all languages, thanks to the rich extension plugins of vscode.
This installation process is carried out on vscode.
Lua plugin
You need to download Lua's code service plugin and debugging plugin. as follows
Lua compiler
Go to Lua official website to download
http://www.lua.org/start.html#installing
The above prompts the LuaDist project, which is no longer taken seriously, please use LuaRocks (is Lua's package manager, similar to Node.js?).
Then I went to see and found that LuaRocks is not particularly friendly to windows, it seems to have win32
After downloading here, just unzip it directly to the directory where you want to put it.
Environment variable configuration
An essential step in the development environment configuration isAdding environment variables。
Willbin directoryAdd to user (valid for current user) or system (valid for all users).
test
After configuration, run cmd test. output is success
Then test the lua code in vscode.
lua language reference documentation
https://www.runoob.com/lua/lua-tutorial.html