Configuring key bindings - cigumo/krli GitHub Wiki

We are planning to change the launch window and include a key bindings configurator.

In the meantime, you can configure them manually by editing the settings.lua file in your save game directory, and restarting the game.

WARNING: changing the settings.lua file might lead to the game not starting. If that happens, delete the settings.lua file and the game will create a new one.

Available key bindings:

  • key_pow_1 : thunder power key, defaults to 1
  • key_pow_2 : reinforcements key, defaults to 2
  • key_pow_3 : hero ultimate key, defaults to 3
  • key_hero_1 : main hero rally point change, defaults to 4
  • key_hero_2 : secondary hero rally point change, defaults to 5
  • key_hero_3 : Durax clones rally point change, defaults to 6
  • key_wave : send next wave, defaults to w

KRF Only:

  • key_item_coins: gold bag item, defaults to F1
  • key_item_hearts: heartbox item, defaults to F2
  • key_item_freeze: frozotov bag item, defaults to F3
  • key_item_dynamite: dynamite bag item, defaults to F4
  • key_item_atomic_freeze: chill wand bag item, defaults to F5
  • key_item_atomic_bomb: fat boy bag item, defaults to F6

Some keys have special names. Use this list to find it: https://love2d.org/wiki/KeyConstant

This example shows how to add a key binding: the number 3 on the numeric keypad to the hero ultimate. (Make sure you add a ; at the end of the line).

local obj1 = {
   ["key_pow_3"] = "kp3"; 
   ... (rest of the settings)
}