Share your repls and programming experiences

← Back to all posts
Pixel Drop
Geocube101 (590)

Avoid falling pixels raining from above.

Use the right and left arrow keys to move out of the way of falling blocks
Below is the time alive in seconds
You can choose between 5 and 10 blocks total

If you get the invalid response, run the repl before opening.

Commentshotnewtop
TMH97 (23)

Not a bad little game at all.

The biggest problem with it, in my opinion, is the delay between when you push the arrow keys and when the player block starts moving rapidly.

While I don't know much JavaScript, I remember having a similar problem with one of my own projects. I recommend instead of getting which key is down and basing movements on that, to have a boolean variable corresponding to each key that is changed when the key is pressed and when the key is released, and basing movements off of those variables instead.

Other than that, it is a solid program.