Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keybindings #113

Closed
z3t0 opened this issue Apr 8, 2015 · 1 comment
Closed

Keybindings #113

z3t0 opened this issue Apr 8, 2015 · 1 comment

Comments

@z3t0
Copy link

z3t0 commented Apr 8, 2015

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);
})
@z3t0
Copy link
Author

z3t0 commented Apr 10, 2015

Answers here #114

@z3t0 z3t0 closed this as completed Apr 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant