Closed z3t0 closed 9 years ago
How would I make a keybinding for if the right mouse button is pressed the following happens.
position = block; console.log("Position: " + position); var blockType = game.getBlock(position); console.log("Checked: " + blockType);
I can get it working with the left button only.
game.on('fire', function (pos){ position = block; console.log("Position: " + position); var blockType = game.getBlock(position); console.log("Checked: " + blockType); })
Answers here https://github.com/maxogden/voxel-engine/issues/114
How would I make a keybinding for if the right mouse button is pressed the following happens.
I can get it working with the left button only.