Pong in JavaScript (using ES6)

Published: 18 August 2016
on channel: Meth Meth Method
89,980
1.5k

In this episode I write a Pong game in JavaScript from scratch.

Some key technologies we will look at are
Object Oriented Programming
ES6 class with getter and setter
Canvas
requestAnimationFrame()
Handling user input

Since we are writing ES6 this code might not run on all browsers yet. I was running Chrome 52 when I wrote this and if you wish to follow I recommend you do too.

The initial HTML file can be found here:
https://github.com/meth-meth-method/p...

Try it:
https://meth-meth-method.github.io/pong/

Source code:
https://github.com/meth-meth-method/pong

Music:
Demoscene Time Machine
http://demoscenetimemachine.com


On this page of the site you can watch the video online Pong in JavaScript (using ES6) with a duration of hours minute second in good quality, which was uploaded by the user Meth Meth Method 18 August 2016, share the link with friends and acquaintances, this video has already been watched 89,980 times on youtube and it was liked by 1.5 thousand viewers. Enjoy your viewing!