Skip to content

samiyaazad/Pong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Apr 21, 2026
943904f · · Apr 21, 2026

History

3 Commits
Apr 21, 2026
Apr 21, 2026
Apr 21, 2026
Apr 21, 2026
Apr 21, 2026
Apr 21, 2026

Repository files navigation

INTRODUCTION

I built this game with HTML, CSS & JavaScript. The Pong game is one of the oldest games. So I focused on keeping it as simple as possible.ble.

TECHNOLOGIES

           - HTML 
           - CSS
           - JavaScript 
           - VS Code
de

FEATURES

      - Play a classic 2-player Pong game
      - Control TWO paddles and compete locally
      - Track scores in real-time
      - Enjoy smooth ball movement and collision physics
cs

KEYBOARD SHORTCUTS

                 - W → Move Player 1 up
                 - S → Move Player 1 down
                 - ↑ (Arrow Up) → Move Player 2 up
                 - ↓ (Arrow Down) → Move Player 2 down
wn

THE PROCESS OF MAKING

                     - Created the game layout using HTML canvas
                     - Styled the game board using CSS
                     - Used JavaScript to:
                     - Draw paddles and a ball
                     - Handle player movement with keyboard input
                     - Implement ball physics and collision detection
                     - Track and display scores
                     - Used requestAnimationFrame() to create a smooth game loop
e loop

WHAT I LEARNED

            - How to use the canvas API for rendering graphics
            - Handling real-time animations in JavaScript
            - Implementing collision detection logic
            - Managing game state (positions, velocity, score)
            - Debugging small errors that can break the whole program
ram

HOW IT CAN BE IMPROVED

                      - Add sound effects for collisions and scoring
                      - Increase ball speed over time for difficulty
                      - Add a start/restart screen
                      - Implement AI opponent (single-player mode)
                      - Improve UI with better design and animations
ons

PREVIEW

PREVIEW_VIDEO.mp4

About

Pong is one of the first computer games that ever created, this simple "tennis like" game features two paddles and a ball, the goal is to defeat your opponent..

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published