-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRoute 101.lua
75 lines (69 loc) · 5.75 KB
/
Route 101.lua
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
63
64
65
66
67
68
69
70
71
72
73
74
75
--[[
going to be using modules for maps
http://lua-users.org/wiki/ModuleDefinition
--]]
local M = {} --for lack of a better name
M_xpos = 150
M_ypos = 457
M_width = 32
M_height = 18
M_image = "Route 101 tileset.png"
M_data = {
{2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2},{
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2},{
2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2},{
2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2},{
2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2},{
2, 2, 2, 2, 2, 2, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 2, 2, 2, 2, 2, 2, 2, 2},{
2, 2, 2, 2, 2, 2, 2, 2, 7, 7, 7, 7, 2, 15, 15, 15, 15, 2, 2, 7, 7, 7, 7, 7, 1, 1, 2, 2, 2, 2, 2, 2},{
2, 2, 2, 2, 2,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 2, 2, 2, 2, 2, 2, 2, 2, 2}
}
M_terrain = {
{1745, 1746, 1745, 1746, 1745, 1746, 1745, 1746, 1745, 1746, 1745, 1746, 1745, 1748, 1749, 1750, 1751, 3190, 1747, 1746, 1745, 1746, 1745, 1746, 1745, 1746, 1745, 1746, 1745, 1746, 1745, 1746},{
1753, 1754, 1753, 1754, 1753, 1754, 1753, 1754, 1805, 1806, 1805, 1806, 1805, 1808, 1801, 1802, 1803, 3190, 1805, 1806, 1805, 1806, 1753, 1754, 1753, 1754, 1753, 1754, 1753, 1754, 1753, 1754},{
1745, 1746, 1745, 1746, 1745, 1746, 1745, 1746, 14, 14, 14, 3190, 3190, 3190, 3190, 3190, 3190, 3190, 3190, 14, 14, 14, 1745, 1746, 1745, 1746, 1745, 1746, 1745, 1746, 1745, 1746},{
1755, 1756, 1755, 1756, 1755, 1756, 1805, 1808, 14, 14, 14, 14, 3190, 3190, 3190, 3190, 3190, 3190, 14, 14, 14, 14, 1805, 1806, 1753, 1754, 1753, 1754, 1753, 1754, 1753, 1754},{
1745, 1746, 1745, 1746, 1745, 1746, 14, 14, 14, 14, 14, 14, 3190, 3190, 3190, 3190, 3190, 3190, 14, 14, 14, 14, 14, 14, 1745, 1746, 1745, 1746, 1745, 1746, 1745, 1746},{
1755, 1756, 1755, 1756, 1755, 1756, 1687, 1688, 14, 14, 14, 3190, 3190, 3190, 3190, 3190, 3190, 1695, 1688, 14, 14, 14, 14, 14, 1807, 1806, 1753, 1754, 1753, 1754, 1753, 1754},{
1745, 1746, 1745, 1746, 1745, 1746, 1745, 1746, 14, 14, 3190, 3190, 375, 488, 488, 488, 787, 1747, 1748, 1687, 1688, 14, 14, 3190, 3190, 3190, 1745, 1746, 1745, 1746, 1745, 1746},{
1755, 1756, 1755, 1756, 1755, 1756, 1755, 1756, 786, 488, 488, 488, 495, 3190, 3190, 3190, 3190, 1753, 1754, 1745, 1748, 3190, 3190, 1741, 1743, 3190, 1753, 1754, 1753, 1754, 1753, 1754},{
1745, 1746, 1745, 1746, 1745, 1746, 1745, 1746, 1695, 1696, 3190, 3190, 3190, 3190, 3190, 3190, 3190, 1745, 1746, 1805, 1808, 3190, 1741, 1750, 1751, 3190, 1745, 1746, 1745, 1746, 1745, 1746},{
1755, 1756, 1755, 1756, 1755, 1756, 1755, 1756, 1745, 1748, 3190, 4, 3190, 1741, 1742, 1743, 3190, 1807, 1808, 14, 14, 3190, 1801, 1750, 1750, 1743, 1753, 1754, 1753, 1754, 1753, 1754},{
1745, 1746, 1745, 1746, 1745, 1746, 1745, 1746, 1755, 1756, 3190, 1741, 1742, 1750, 1750, 1751, 3190, 14, 14, 14, 14, 14, 3190, 1801, 1750, 1751, 1745, 1746, 1745, 1746, 1745, 1746},{
1755, 1756, 1753, 1756, 1755, 1756, 1755, 1756, 1745, 1746, 3190, 1801, 1750, 1750, 1750, 1803, 3190, 14, 14, 14, 14, 14, 14, 3190, 1801, 1803, 1753, 1754, 1753, 1754, 1753, 1754},{
1745, 1746, 1745, 1746, 1745, 1746, 1745, 1746, 1805, 1808, 3190, 3190, 1801, 1802, 1803, 3190, 3190, 14, 14, 14, 14, 14, 14, 3190, 3190, 3190, 1745, 1746, 1745, 1746, 1745, 1746},{
1755, 1756, 1755, 1756, 1755, 1756, 1755, 1756, 14, 14, 3190, 3190, 3190, 3190, 786, 488, 488, 787, 1687, 1688, 14, 14, 14, 3190, 1695, 1696, 1753, 1754, 1753, 1754, 1753, 1754},{
1745, 1746, 1745, 1746, 1745, 1746, 14, 14, 14, 14, 14, 3190, 3190, 3190, 3190, 3190, 3190, 3190, 1747, 1746, 14, 14, 3190, 3190, 1745, 1746, 1745, 1746, 1745, 1746, 1745, 1746},{
1755, 1756, 1755, 1756, 1755, 1756, 1687, 1688, 14, 14, 14, 14, 3190, 3190, 3190, 3190, 3190, 3190, 1753, 1754, 1687, 1688, 1695, 1696, 1753, 1754, 1753, 1754, 1753, 1754, 1753, 1754},{
1745, 1746, 1745, 1746, 1745, 1746, 1745, 1746, 14, 14, 14, 14, 3190, 3190, 3190, 3190, 3190, 3190, 1745, 1746, 1745, 1746, 1745, 1746, 1745, 1746, 1745, 1746, 1745, 1746, 1745, 1746},{
1755, 1756, 1755, 1756, 1755, 1756, 1755, 1756, 1687, 1688, 1687, 1696, 1695, 1696, 1695, 1696, 3190, 3190, 1753, 1754, 1753, 1754, 1753, 1754, 1753, 1754, 1753, 1754, 1753, 1754, 1753, 1754}
}
-- base tiles
-- 1 = walkable
-- 2 = solid
-- 3 = water
-- 4 = elevation
-- load tiles
-- 5 = walkable load
-- 6 = water load
-- 7 = walkable unload
-- 8 = water unload
-- 9 = walkable load behind something
-- 10 = water load behind something
-- 11 walkable unload behind something
-- 12 water unload behind something
-- jump ledges
-- 13 = left to right movement
-- 14 = right to left movement
-- 15 = up to down movement
-- 16 = warp (door)