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
mysterydip1 reply#
I'm working on a game right now, and one of my roadblocks is how to handle the myriad of resolutions, aspect ratios, and portrait vs landscape modes, plus the overriding some mobile browsers do for touch (scrolling the screen, etc). What has been your approach to consolidating all of those differences so a game "just works" on all platforms?
dylan6041 reply#
Ha! I read the instructions and did exactly what it said. Hit space once and the "ball" started to move on non-touch device, I was trying to figure out how to move the paddles so continuously kept watching the ball drop with 0 score. I was halfway convinced that it was a joke game (which would have been pretty clever).
mromanuk#
yes, to the game creator, you should clarify that, happened the same to me. Something like "keep tapping spacebar"
noufalibrahim#
Very nice. Well done. I love takes like this which subvert the ideas from the old classics. Reminds of of http://hcs64.com/efp.html which is Pong but from the balls point of view.

Load more comments