Code Pong in Javascript

preview_player
Показать описание
How to code pong in javascript. In this tutorial, you will learn how to create the atari arcade classic game, pong.

Throughout the tutorial, you will learn how to create the game loop, draw the paddles on the canvas, add click handlers to make the paddles move, detect collisions between the ball and make it bounce off the walls and paddles, and add a running score.

Java Game Programming Projects Playlist:

JavaScript Game Programming Projects Playlist:

Subscribe for more coding tutorials 😄!
Рекомендации по теме
Комментарии
Автор

Check out the playlist of web project tutorials here!

Got a tutorial suggestion? Let me know down below!

KennyYipCoding
Автор

Your an absolute god for making a website with tutorials

MaroonedLife
Автор

I appreciate you putting out these tutorials. I'm hoping you can explain what's going on more, explain the code more, explain why certain code goes on this line or in this function, and why it goes there. And, if you can explain the functions. When you're saying that you're going to make a paddle or make a loop then you just start writing it. There are already many youtube videos that do it this way. They too don't explain how everything fits together. And again, I really appreciate your hard work, but I really want to learn why. Thanks!

robertkeiko
Автор

KEEP IT GOING!!!, you are really good at explaining things, it help me to make my code so much simple and efficient. greetings from argentina!

scryextreme
Автор

I was simple. And I feel confident in Javascript.

prathameshgaikwad
Автор

Thank you sooo much for explanation and lesson. Very simple and very useful!! ❤

tabrisel
Автор

20:50
"and then i am going to draw a RECTANGLE for the BALL"

andrewanimatesstuff
Автор

anybody? how do i change my dotted line and score number from black to white. tq for the amazing tutorial kenny!

fana
Автор

I cant get the black background to show up at all! What am i doing wrong?

Edit: I just put the entire code in my editor and then moved it to chrome, and it still wont appear. Why cant i view the code?

Edit: I had to open it with a live server. Hope it helps others! XD

Edit: Actually, I just had to save the file before loading it on to the browser. Well, now I know!

CrazyCobraCC
Автор

How would you be able to increase the speed of the players?

daboi
Автор

why u r not making this kind of tutorials

randomplay