LeedsJs/jackdaw — pull request #20 by sfoster (2012-02-17 00:51:58+00:00)
Title: Refactoring of keyboard controls to use entity/component system

By attaching keyboard controls as a component, we get a keysDown property updated each time through the loop. I've defined the player object as an instance of our Entity class, and given it the keyboardControls component. This means the player has its own keysDown prop. We could also make the level an entity and attach and reference it there too/instead.