Lurker News
Hi HN!

I made many small web games in the past with Unity or Phaser. But this time I wanted to make something completely on my own. So I coded a basic game framework in plain JavaScript, and used it to make Almost Pong.
This was a really fun project that taught me a lot about JavaScript, and I plan to make more minimalist games with this framework. Interesting fact: Almost Pong doesn't load any assets, all sprites and sounds are generated with code.
Happy to answer questions, and please let me know if you have any feedback on the game. Thanks!

Comments (181) 117 threads

Earlier comments
kohlerm#
Haha nice. Hard to play on my QMK based keyboard, probably because I mapped space to be ctrl if hold and that causes some latency
jhanschoo2 replies#
One thing to consider to increase the difficulty is to make jumping add to the vertical velocity a la flappy bird, rather than fix it to a certain positive vertical velocity. Right now a reliable strategy is to let the ball fall to a certain angle below the paddle, then spam jump to get a fixed trajectory to the paddle.
TheRealNGenius#
I disagree with this. I think it is fun as is
muzani#
I think it's just fine as it. The paddle gets smaller and the ball gets faster so it becomes more challenging to do that.
antirez#
It's incredible how in a matter of minutes the game becomes so much simpler compared to the first times.

Load more comments