Before Lua, you must [help you quickly build a compiling environment]

Source: Internet
Author: User

Lua can be said to have a great impact on the gaming industry. Many famous games are using it. Such as World of Warcraft, warehouse hammer 40 k, the gate of Bode, xuanyuan sword rumor in China, westward journey 2 and so on. I will not describe them here. Many introductions on the Internet. Here I want to share with you the process of learning lua. We hope to help you avoid detours.

Below are some common links:

Official Website: http://www.lua.org/

Luaforwindows: http://code.google.com/p/luaforwindows/

Lua can be learned in two ways: lua programming only, and lua and other languages mixed programming.

Some people say that c ++ is easier to get started with lua. In fact, it is helpful but not big. Because its concept is far from that of c ++. There is a programming concept. So I suggest learning from the first type. When you have a certain understanding of lua, you are learning cross-language interaction. This is much simpler.

First, we recommend that you use luaforwindows to configure lua. Editor, document, header file and library, and other auxiliary libraries. It saves a lot of trouble. If you have used it, you will be able to understand the Chinese problem. In fact, there is no problem with simple configuration. We will not introduce it. There are many teaching materials on the Internet. I am not going to talk about the principles.

Start scite and click Options and Open User Options file to Open Sciteuser. properties.

Paste the following content and save it. Try again.

 # Make the scite text editor support Chinese characters. </p> <p> #65001 is UTF-8 encoding. Yidabu.com has tried, and there will be garbled characters when autoit processes utf8. </P> <p> # character. if set = 134 is not enabled, Chinese characters in the output area may be garbled </p> <p> code. page = 65001 </p> <p> code. page = 936 </p> <p> output. code. page = 936 </p> <p> character. set = 134 </p> <p> # set the font size and font size </p> <p> font. monospace = font:, size: 10 </p> <p>

 

Create a lua script

Try pressing Ctrl + B. Code Template. It doesn't matter if you bring your own clothes and food.

Start scite and click Options and Open Abbreviation file to Open abbrev. properties.

If = if | then/n/
/N/
End

'If' is the definition phrase Ctrl + B

'/N' line feed

'/' The line feed in the configuration is added to the configuration file for good looking.

'|' Cursor position

 

Make full use of your ideas to configure them.

 

It's okay. I will help you build a Chinese editor.

Http://download.csdn.net/source/3108985

 

In the downloaded file, "locale. properties" is installed in the same directory as scite.exe. Awesome ~~!

 

I am one of them. Now it's getting better. Therefore, the Chinese configuration file is only used for poor children's shoes. Don't let it go here. If there is no nutrition, bypass it.

Luaforwindows comes with the help documentation. (E-text) is not written by F1.

You can also download the Chinese version Programming_In_Lua and lua5.1 reference manual. I won't say much about the Lua Quick Start for C and C ++ programmers ~~! I do not know how to read books diligently. Google Baidu.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.