This repository has been archived by the owner on Jun 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
hud_config.lua
88 lines (73 loc) · 1.46 KB
/
hud_config.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
76
77
78
79
80
81
82
83
84
85
86
87
88
-- Defines the elements to put in the HUD
-- and their position on the game screen.
-- You can edit this file to add, remove or move some elements of the HUD.
-- Each HUD element script must provide a method new()
-- that creates the element as a menu.
-- See for example scripts/hud/hearts.lua.
-- Negative x or y coordinates mean to measure from the right or bottom
-- of the screen, respectively.
local hud_config = {
-- Hearts meter.
{
menu_script = "scripts/hud/hearts",
x = -104,
y = 6,
},
-- Magic bar.
{
menu_script = "scripts/hud/magic_bar",
x = -104,
y = 27,
},
-- Rupee counter.
{
menu_script = "scripts/hud/rupees",
x = 8,
y = -20,
},
-- Small key counter.
{
menu_script = "scripts/hud/small_keys",
x = -26,
y = -19,
},
-- Floor view.
{
menu_script = "scripts/hud/floor",
x = 5,
y = 70,
},
-- Pause icon.
{
menu_script = "scripts/hud/pause_icon",
x = 0,
y = 6,
},
-- Item icon for slot 1.
{
menu_script = "scripts/hud/item_icon",
x = 11,
y = 28,
slot = 1, -- Item slot (1 or 2).
},
-- Item icon for slot 2.
{
menu_script = "scripts/hud/item_icon",
x = 63,
y = 28,
slot = 2, -- Item slot (1 or 2).
},
-- Attack icon.
{
menu_script = "scripts/hud/attack_icon",
x = 13,
y = 28,
},
-- Action icon.
{
menu_script = "scripts/hud/action_icon",
x = 26,
y = 50,
},
}
return hud_config