Skip to content

feat: Create basic Ping Pong game #157

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

neowick45
Copy link

Adds a fully playable 2D Ping Pong game with the following features:

  • HTML structure (index.html) with a game canvas and instruction area.
  • CSS styling (style.css) for the game elements and layout.
  • JavaScript logic (script.js) implementing:
    • Player paddle controlled by mouse.
    • Simple AI for the opponent paddle.
    • Ball movement and physics (collision with walls and paddles).
    • Scoring system.
    • Ball reset after each point.
    • First player to 5 points wins the game.
    • Game over message and instructions to refresh for a new game.
  • Instructions on how to play are included on the page.

Adds a fully playable 2D Ping Pong game with the following features:

- HTML structure (`index.html`) with a game canvas and instruction area.
- CSS styling (`style.css`) for the game elements and layout.
- JavaScript logic (`script.js`) implementing:
  - Player paddle controlled by mouse.
  - Simple AI for the opponent paddle.
  - Ball movement and physics (collision with walls and paddles).
  - Scoring system.
  - Ball reset after each point.
  - First player to 5 points wins the game.
  - Game over message and instructions to refresh for a new game.
- Instructions on how to play are included on the page.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant