In the previous article of the series, I described how to animate the left paddle using mouse movements. See: In this article, I will detail how to animate the ball, use an AI function to animate the right (computer) paddle, and take care of scoring. Step 1: Get the ball moving First I will need … Continue reading JavaScript: Intro to Web Game Development – Part 5: ball handling, scoring, and A.I.
Month: January 2018
JavaScript: Intro to Web Game Development – Part 4: animate left paddle
This is the fourth part in the series on how to create a web browser game of Pong using JavaScript. Part 3 can be read here: For this article, I will demonstrate how to add mouse control to the left paddle so that it moves straight up and down on the Y axis, based on … Continue reading JavaScript: Intro to Web Game Development – Part 4: animate left paddle