Перейти к содержимому

Pong in JavaScript (using ES6)

Meth Meth Method

0:00 / 0:00

Pong in JavaScript (using ES6)

90 124 просмотра · 10 лет назад
Meth Meth Method
21,2 тыс. подписчиков
90 124 просмотра · 10 лет назад
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