Legendary delete inserted

This commit is contained in:
KikooDX 2021-01-30 16:47:49 +01:00
parent 11d6ebef3c
commit f14c60c630
2 changed files with 9 additions and 1 deletions

View File

@ -100,7 +100,7 @@ pub const ActionsDef = .{
},
.move_DOWN_LEFT = Action{
.category = ActionCat.movement,
.function_move = movement.move_up_left,
.function_move = movement.move_down_left,
},
// Down-right.
.move_down_right = Action{
@ -113,6 +113,12 @@ pub const ActionsDef = .{
.function_move = movement.move_down_right,
},
// Verbs.
.verb_delete = Action{
.category = ActionCat.verb,
.function_verb = Level.action_delete,
},
// Scale.
.scale_reset = Action{
.category = ActionCat.scale,

View File

@ -69,6 +69,8 @@ pub fn main() !void {
bindings['B'] = &ActionsDef.move_DOWN_LEFT;
bindings['n'] = &ActionsDef.move_down_right;
bindings['N'] = &ActionsDef.move_DOWN_RIGHT;
// Verbs
bindings['d'] = &ActionsDef.verb_delete;
// Scale.
bindings['='] = &ActionsDef.scale_reset;
bindings['+'] = &ActionsDef.scale_up;