Show HN: I made a web game called Almost Pong (opens in a new tab)lessmilk.com
1135 pointsHi 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 commentsIf Web Audio is disabled then window.AudioContext is undefined, causing a crash:
[0] https://developer.mozilla.org/en-US/docs/Web/API/DOMHighResT...
* Higher refresh rates means more frames can be displayed each second by the monitor
* Lower latency between some input action (mouse, keyboard) and the frame being drawn on the monitor (provided your game can run at a matching number of frames per second; FPS)
* Synching your FPS to refresh rate (e.g. if you're game can run at a locked 280fps and your monitor is running at 280hz) will remove tearing and provide a very smooth experience
On the desktop the benefits are less pronounced: Everything just feels a bit smoother, like moving your mouse point/open windows around the monitor.
Such high refresh rate displays normally aren't very colour accurate when compared to displays used for media editing.
1 Player = Almost Pong
2 Players = Pong
3 Players = Pong + Almost Pong
I especially appreciate the "loads no assets" aspect. I will take a look at the code in the morning!
p.s. have you considered the name "Flappy Pong"?
This game was definitely inspired by Flappy Bird, but no I didn't think about that name before today.
All comments shown.
Couldn't load more comments. Check your connection and try again.