Skip to content

lostjared/Pong.JavaScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pong Game in JavaScript

screenshot

This is a simple implementation of the classic Pong game in JavaScript. The game is played on an HTML5 canvas where a player can control a paddle to compete against a computer AI.

Features

  • Player paddle controlled by the keyboard.
  • Computer-controlled AI paddle.
  • Ball that bounces off the paddles and walls.
  • Simple collision detection and response.

How to Play

  • Use the "Arrow Up" and "Arrow Down" keys to move the player's paddle.
  • The AI paddle will automatically move to follow the ball.
  • The objective is to prevent the ball from passing your paddle.

Getting Started

  1. Clone the repository or download the source code.
  2. Open index.html in your web browser.

Releases

No releases published

Packages

No packages published