Permalink
Browse files

Fix error in README.md code sample

It's atom.key.LEFT_ARROW/atom.key.RIGHT_ARROW, not atom.key.LEFT/atom.key.RIGHT
  • Loading branch information...
1 parent bee20d4 commit b2c759f99f09054fe1e35a5157ddfa93646ea3f0 @Muon Muon committed Mar 9, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
@@ -9,8 +9,8 @@ Here's what a game using Atom looks like:
class Game extends atom.Game
constructor: ->
super
- atom.input.bind atom.key.LEFT, 'left'
- atom.input.bind atom.key.RIGHT, 'right'
+ atom.input.bind atom.key.LEFT_ARROW, 'left'
+ atom.input.bind atom.key.RIGHT_ARROW, 'right'
update: (dt) ->
if atom.input.pressed 'left'

0 comments on commit b2c759f

Please sign in to comment.