Skip to content

gabeperez/pong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Cyberpunk Pong

Cyberpunk Pong is a modern reimagining of the classic Pong game with neon aesthetics, immersive sound effects, and various gameplay modes. This game provides a retro-futuristic experience with AI or two-player options, multiple balls, and interactive controls. You can play the game here

Features

  • Two Game Modes:
    • AI Mode: Play against a computer opponent.
    • Two Player Mode: Compete with a friend using keyboard controls.
  • Sound Effects: Web Audio API creates responsive sound effects for ball hits and scores.
  • Interactive Controls:
    • Add or remove balls during the game.
    • Pause or reset the game on the fly.
  • Dynamic Gameplay: AI difficulty increases with score.
  • Neon Aesthetics: Glow effects and vibrant colors create a cyberpunk ambiance.

Controls

Player Controls

  • Player 1 (Left Paddle):

    • Move Up: W
    • Move Down: S
  • Player 2 (Right Paddle) (Two Player Mode only):

    • Move Up: Arrow Up
    • Move Down: Arrow Down
  • Touch Controls:

    • PLayer 1: Left side of screen
    • Player 2: Right side of screen

Game Control Buttons

  • AI Mode: Activates AI opponent for Player 2.
  • Two Player Mode: Enables control for two players.
  • Reset Ball: Moves all balls back to the center of the canvas.
  • Pause/Resume: Pauses or resumes the game.
  • Add Ball: Adds an extra ball to the game.
  • Reduce Balls: Removes a ball (minimum of one ball).
  • Single Ball Game: Resets the game to a single ball.
  • Restart Game: Resets the score and game objects to their initial state.

Setup and Usage

  1. Clone or download the project files to your computer.
  2. Open the index.html file in any modern web browser (e.g., Chrome, Firefox, Edge).
  3. Select a game mode using the AI Mode or Two Player Mode buttons.
  4. Control your paddle using the keyboard keys, and modify gameplay with the on-screen buttons.

Technologies Used

  • HTML: Provides the structure of the page.
  • CSS: Adds styling and cyberpunk visual elements.
  • JavaScript: Implements the game logic, animations, and interactions.
  • Web Audio API: Generates sound effects for gameplay.

How to Play

  • You can play the game at gimme.coffee/pong
  • Hit the ball past the opponent’s paddle to score points.
  • The ball bounces off walls and paddles with adjusted angles.
  • The first player to reach a high score (or any agreed score limit) wins.

Screenshots

(Include gameplay screenshots if available)

License

This project is open-source and available under the MIT License.


Enjoy the neon-lit action of Cyberpunk Pong! 🎮

About

experimenting with pong

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages