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
danielandrews431 reply#
You were one of my biggest inspirations for going into software engineering, I absolutely loved your website in high school and would always mess around with the source code to your games. Happy to see you’re still going!
lessmilk#
This is awesome to hear! I stopped making games for a few years to focus on other things, but now I'd like to get back to it.
cercatrova#
Remember when Flappy Bird was making $50k a day (or something like that [0]) and the creator should shut it down? Ah, memories. You could potentially recreate this to put on the mobile app stores and see how it does, I think a lot of people would play it.

Oh, and soon you'll see people here on HN competing to hack the top score as with previous games [1], either though writing an AI to play the game or by modifying the JS itself on the site.
[0] https://www.cnet.com/tech/services-and-software/no-flappy-bi...
[1] https://news.ycombinator.com/item?id=29921419

throwaddzuzxd3 replies#
That's a fun concept, but you might want to speed it up a little bit. I stopped at 20 because I got bored, it's way too slow. The ball moves too slowly and the paddles should shrink a bit faster. The change that occurs between 1 and 20 should probably happen between 1 and 5, or 1 and 3 instead.

Edit: oh wait, it's way more fun on Safari. On Firefox it feels slow and slugish, but on Safari it's great!

hessart1 reply#
Hi. I've had the same (good) experience on both. Could it be something in your FF?
pgt#
Ah, I also stopped at 19 and didn't even notice the paddles were shrinking! Yeah, maybe speed up.

And powerups in the middle that make ball bigger or grows one paddle again would be interesting.

ArtWomb#
It's fun on Chrome 98 / Ubuntu as well ;)

I think the game should scroll up infinitely as you progress. It will enhance the psychological feel of falling in space when the pong drops. And you can introduce levels, bosses, goals, etc.
The basic game play mechanic here is solid. Just like keeping a party balloon from hitting the ground!

jseutter#
Chrome on m1 mac - laggy and frustrating in a bad way

Safari on m1 mac - no lag and frustratingly fun :)

Load more comments