How to use the rot-js.VK_L function in rot-js

To help you get started, we’ve selected a few rot-js examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Larkenx / Rotten-Soup / src / assets / js / game / entities / actors / Player.js View on Github external
[ROT.VK_LEFT]: 6,
			[ROT.VK_UP]: 0,
			[ROT.VK_DOWN]: 4,
			// Numpad Movement
			[ROT.VK_NUMPAD8]: 0,
			[ROT.VK_NUMPAD9]: 1,
			[ROT.VK_NUMPAD6]: 2,
			[ROT.VK_NUMPAD3]: 3,
			[ROT.VK_NUMPAD2]: 4,
			[ROT.VK_NUMPAD1]: 5,
			[ROT.VK_NUMPAD4]: 6,
			[ROT.VK_NUMPAD7]: 7,
			// vi movement
			[ROT.VK_H]: 6,
			[ROT.VK_U]: 1,
			[ROT.VK_L]: 2,
			[ROT.VK_N]: 3,
			[ROT.VK_J]: 4,
			[ROT.VK_B]: 5,
			[ROT.VK_K]: 0,
			[ROT.VK_Y]: 7,
			// Rest using '5' in numpad
			[ROT.VK_NUMPAD5]: 'rest',
			// Fire a weapon
			[ROT.VK_F]: 'fire',
			// Cast a spell
			[ROT.VK_Z]: 'cast',
			// Interact
			[ROT.VK_E]: 'interact',
			[ROT.VK_ADD]: 'climb',
			[ROT.VK_SUBTRACT]: 'climb',
github seiyria / Roguathia / src / js / rogue / init / debug.js View on Github external
document.body.addEventListener('keydown', (e) => {
    if(e.keyCode !== ROT.VK_L) return;

    GameState.game.changeSplitScreen();
  });