Lua

Lua

#lua

1

1: Lua

2

2

2

Examples

3

3

4

Lua

5

7

7

7

nil

7

8

8

8

8

8

9

for

9

9

9

PITFALL

9

10

10

2: Lua C API

12

12

12

Examples

12

Lua

12

Lua

13

APILuaLua

13

15

15

15

15

3: Lua

17

17

Examples

17

17

17

17

17

18

18

18

18

19

19

'''

20

20

/

20

20

20

return

21

21

4: PICO-8

22

22

Examples

22

22

22

23

5:

25

25

25

25

Examples

25

metatables

25

25

- __gc

26

26

27

27

27

28

28

OOP

29

6:

31

31

31

Examples

31

31

32

32

32

32

32

33

33

34

34

35

36

36

36

7:

38

38

38

Examples

38

38

8:

41

41

41

41

Examples

41

41

42

9:

44

44

44

Examples

44

44

10:

45

45

45

Examples

45

Lua

45

string.find

47

find

47

47

`gmatch`

48

48

48

gsub

49

49

49

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download