projects
/
ld40.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01e611f
)
Cleanup: Remove unused keyboard handler
cleaning
author
MegaBrutal
<code+git@megabrutal.com>
Thu, 28 Dec 2017 00:45:00 +0000
(
01:45
+0100)
committer
MegaBrutal
<code+git@megabrutal.com>
Thu, 28 Dec 2017 00:45:00 +0000
(
01:45
+0100)
modified: ld40.js
ld40.js
patch
|
blob
|
history
diff --git
a/ld40.js
b/ld40.js
index 6a1eb77ea15a4a09b5d5c371c93c5941f4eb4ced..7b14c05b870e51ba841e4ff0a0feb9d25c09fae8 100644
(file)
--- 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.
}