Skip to content

Experience the nostalgia of classic arcade fun with this HTML5 canvas and JavaScript implementation of the iconic Pong game

License

Notifications You must be signed in to change notification settings

bettausrosen/Pong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Pong Game

Pong is a classic arcade game that simulates table tennis. This project provides a simple implementation of Pong using HTML5 canvas and JavaScript.

How to Play

  1. Open the Game: Open the index.html file in your web browser.
  2. Controls:
    • Player 1 (Left Paddle):
      • Move Up: Press 'W' key
      • Move Down: Press 'S' key
    • Player 2 (Right Paddle):
      • Move Up: Press the up arrow key (↑)
      • Move Down: Press the down arrow key (↓)
  3. Objective: The objective of the game is to score points by hitting the ball past your opponent's paddle.
  4. Scoring:
    • Each time the ball passes the opponent's paddle and hits the wall behind, the opponent loses a point.
    • The first player to reach 10 points wins the game.
  5. Game Over: When one player reaches 10 points, the game ends and a winner is declared.

Technologies Used

  • HTML5: Used for structuring the web page.
  • CSS: Used for styling the elements.
  • JavaScript: Used for game logic and interactivity.
  • Canvas API: Used for drawing graphics and animations.

Preview

Pong Game Preview

License

This project is licensed under the MIT License, allowing for modification and distribution under certain conditions. Feel free to use and modify the code according to your needs.

About

Experience the nostalgia of classic arcade fun with this HTML5 canvas and JavaScript implementation of the iconic Pong game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published