UNPKG

contro-max

Version:

Game controls done in the best possible way!

31 lines (30 loc) 537 B
// from dimaka-love/interface export const keysMovementConfig = [ ['z', -1], //W ['x', -1], //A ['z', 1], //S ['x', 1], //D ]; /** Left part of touch controls */ export const touchLeftControlsConfig = [ [ 'wa', -45, [ ['x', -1], ['z', -1], ], ], ['w', 0, ['z', -1]], [ 'wd', 45, [ ['x', 1], ['z', -1], ], ], ['d', 90, ['x', 1]], ['s', 180, ['z', 1]], ['a', 270, ['x', -1]], ];