From: MegaBrutal Date: Thu, 28 Dec 2017 00:45:00 +0000 (+0100) Subject: Cleanup: Remove unused keyboard handler X-Git-Url: http://git.megabrutal.com/?p=ld40.git;a=commitdiff_plain;h=5f3463c147818b19f14e43ac6844fa1acfce931e Cleanup: Remove unused keyboard handler modified: ld40.js --- diff --git a/ld40.js b/ld40.js index 6a1eb77..7b14c05 100644 --- a/ld40.js +++ b/ld40.js @@ -273,8 +273,6 @@ game.camera.follow(player); cursors = game.input.keyboard.createCursorKeys(); - keyboard_handler = keyPress_default; - } function update () { @@ -300,12 +298,5 @@ } if ((game.time.now - player.lastmovetime) > WAIT_KEY) player.body.velocity.x = player.body.velocity.y = 0; - if (keyboard_handler) keyboard_handler(); - - } - - function keyPress_default() { - - // Maybe needed later. }