Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- document.bind('keydown', function(e) {
- switch (e.which) {
- case 37:
- /* !moving left */
- // code
- break;
- case 39:
- /* !moving right */
- // code
- break;
- case 38:
- /* !moving up */
- // code
- break;
- case 40:
- /* !Baller is moving down */
- //code
- }
- });
Add Comment
Please, Sign In to add comment