i-0/robot_space_shooter — pull request #1 by VenkyLeFou (2012-09-30 09:33:49+00:00)
Title: Update main.js

Just a typo: **Key Up** event was not correctly attached (*it's case sensitive*) so the keyUp function was not being called.

There are a couple more things I've noticed but this was the real show-stopper because the ship would get stuck going right and up once those were pressed just once.

One of the other things I've noticed is that some enemy ships get placed too far to the right, so they are out of firing range. I guess the problem is here:

Math.random() * 270 + 50

I'd say `* 250 + 50` or `* 270 +30` look like better values, but as I'm not really sure, I'll let you fiddle with the numbers a bit to see what works best ;)