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
chrisvalleybay#
A lot of fun! What might also be fun is if you could hold space / mouse 1 to «charge» the jump so that you jump higher if you hold.
Vetch1 reply#
This is excellent, creative and could also serve as a much less boring than pong project for starting reinforcement learning.
bnegreve#
You don't need RL to compute the trajectory of a falling object.
radicalriddler#
Nice! What a fun little game. Ended up with 36, and I feel like after 30, the bars stopped getting smaller, not sure though.

Load more comments