As of the previous article, the game can be considered to be in a “complete” state, but I want to add a few features, such as a title screen, some options such as score to win, ball speed, and game colors. I also want to add a link back to the title screen from the … Continue reading JavaScript: Intro to Web Game Development – Part 7: add title screen and settings
addEventListener()
JavaScript: Intro to Web Game Development – Part 6: add win screen and replay
In the previous article, scoring was introduced, but there was no win detection that would end the game. The previous article in the series can be read here: JavaScript: Intro to Web Game Development – Part 5: ball handling, scoring, and A.I. In this article, I will show how to detect when a game ends … Continue reading JavaScript: Intro to Web Game Development – Part 6: add win screen and replay
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
JavaScript: Intro to AJAX
AJAX stands for Asynchronous JavaScript And XML. The basic concept is to use JavaScript and combine the fetching of XML (or JSON) data and make that data appear in some location of a web page without the page ever having been refreshed. This allows for dynamic content in an otherwise static page. w3schools.com describes it … Continue reading JavaScript: Intro to AJAX