Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 799 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 799 Bytes

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.