-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkeys.lua
49 lines (48 loc) · 1.08 KB
/
keys.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
keys = {
move = {
['j'] = pos(0, 1),
['k'] = pos(0, -1),
['h'] = pos(-1, 0),
['l'] = pos(1, 0),
['y'] = pos(-1, -1),
['u'] = pos(1, -1),
['b'] = pos(-1, 1),
['n'] = pos(1, 1),
['.'] = pos(0,0)
},
shift_move = {
['j'] = pos(0, 1),
['k'] = pos(0, -1),
['h'] = pos(-1, 0),
['l'] = pos(1, 0),
['y'] = pos(-1, -1),
['u'] = pos(1, -1),
['b'] = pos(-1, 1),
['n'] = pos(1, 1)
},
meta = {
['q'] = love.event.quit,
['i'] = open_inv,
},
shift_meta = {
['.'] = next_floor
},
actions = {
['g'] = game_state.player.pick_item_up,
['a'] = game_state.player.use_item
},
modifiers = {
['lshift'] = 1,
['rshift'] = 1
},
inv = {
['a'] = 1,
['b'] = 2,
['c'] = 3,
['d'] = 4,
['e'] = 5,
['f'] = 6,
['g'] = 7,
['h'] = 8
}
}