-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathMultiple Files.bit
63 lines (43 loc) · 1.2 KB
/
Multiple Files.bit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package:application/vnd.bitty-archive;
data:text/json;count=150;path=info.json;
{
"id": 0,
"title": "Basics/04. Multiple Files",
"description": "",
"author": "Tony",
"version": "1.0",
"genre": "TUTORIAL",
"url": ""
}
data:text/lua;count=323;path=bar.lua;
--[[
Example for the Bitty Engine
Copyright (C) 2020 - 2025 Tony Wang, all rights reserved
Homepage: https://paladin-t.github.io/bitty/
]]
print('Begin bar')
local ret, _ = require 'foo' -- Require 'foo'; would warn for recursive requiring.
print(tostring(ret) .. ', ' .. tostring(_))
print('End bar')
return '[bar]'
data:text/lua;count=287;path=foo.lua;
--[[
Example for the Bitty Engine
Copyright (C) 2020 - 2025 Tony Wang, all rights reserved
Homepage: https://paladin-t.github.io/bitty/
]]
print('Begin foo')
local ret, _ = require 'bar' -- Require 'bar'.
print(tostring(ret) .. ', ' .. tostring(_))
print('End foo')
return '[foo]'
data:text/lua;count=273;path=main.lua;
--[[
Example for the Bitty Engine
Copyright (C) 2020 - 2025 Tony Wang, all rights reserved
Homepage: https://paladin-t.github.io/bitty/
]]
print('Begin main')
local ret, _ = require 'foo' -- Require 'foo'.
print(tostring(ret) .. ', ' .. tostring(_))
print('End main')