Sunday, May 13, 2018

Pong with Javascript

Last week, I was going through some old files and came across a small HTML file I had created some time back which implemented a basic pong game in Javascript. 

The code was messy and my implementation was, to put it nicely, shite. I had used the setInterval method which wasn't the best if you wanted to animate something in JS. So, in the next few days I'll be re-writing the game with the much more game friendly requestAnimationFrame method.


Popular posts