- Now Up and Jump can be defined as different keys/buttons.

This commit is contained in:
2023-01-21 14:29:50 +01:00
parent 33af343c80
commit 3898289f57
3 changed files with 20 additions and 2 deletions

View File

@@ -29,12 +29,14 @@ function _init()
keyDown = tonumber(getconf("keydown")) or KEY_DOWN
keyLeft = tonumber(getconf("keyleft")) or KEY_LEFT
keyRight = tonumber(getconf("keyright")) or KEY_RIGHT
keyJump = tonumber(getconf("keyjump")) or KEY_UP
keyShoot = tonumber(getconf("keyshoot")) or KEY_SPACE
btnUp = tonumber(getconf("btnup")) or BTN_UP
btnDown = tonumber(getconf("btndown")) or BTN_DOWN
btnLeft = tonumber(getconf("btnleft")) or BTN_LEFT
btnRight = tonumber(getconf("btnright")) or BTN_RIGHT
btnJump = tonumber(getconf("btnjump")) or BTN_UP
btnShoot = tonumber(getconf("btnshoot")) or BTN_A
--game_init()