JS Tennis - a short JavaScript project

For now, this game does not scale well with mobile devices. I am hoping to have this playable on mobile soon TM.

Features  of this Project

JSTennis is a short, pong-like game created using JavaScript, and HTML5 Canvas Drawing (2D)

Features include:

  • Score Keeping and Win/Loss Conditions
  • Mouse Tracking for Player Racket Control
  • Simple Throttled Paddle AI
  • AI which speeds up as the player scores and slows down as it scores
  • Gradual increase in ball speed with each hit, promoting a quick resolution of each set.

Source code for this game can be found here.

I used this project to teach myself both simple canvas operations as well as JavaScript fundamentals.