Skip to content

eduardo2580/PongInPython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏓 Python Pong Game

License: MIT Python Turtle Graphics Game

English | Português | Español


English

🎯 Features

  • Interactive Menu: Start the game by pressing ENTER
  • Responsive Gameplay: Control paddles with smooth motion and realistic ball physics
  • Score Tracking: Real-time score display for both players
  • Win Condition: First player to reach 5 points wins the game
  • Pause Functionality: Pause and resume gameplay using the P key
  • Reset Option: Instantly reset ball position with the SPACE key
  • Countdown Timer: Three-second countdown before each round begins
  • Classic Graphics: Built with Python's Turtle graphics library

🚀 Quick Start

# Clone the repository
git clone https://github.com/eduardo2580/PongInPython.git
cd PongInPython

# Install dependencies (if any)
pip install -r requirements.txt

# Run the game
python src/main.py

🎯 How to Play

  • Start Game: Press ENTER from the main menu
  • Control Paddles: Use designated keys to move your paddle up and down
  • Score Points: Get the ball past your opponent's paddle
  • Win the Game: First player to reach 5 points wins
  • Pause/Resume: Use P to pause and resume gameplay

🎮 Controls

  • Player A (Left Paddle):
    • Move Up: W
    • Move Down: S
  • Player B (Right Paddle):
    • Move Up: Up Arrow
    • Move Down: Down Arrow
  • Game Controls:
    • ENTER: Start the game (from menu)
    • P: Pause/Resume game
    • SPACE: Reset ball position
    • ESCAPE: Exit game

⚙️ Customization

  • Paddle Settings: Adjust PADDLE_WIDTH, PADDLE_HEIGHT, and PADDLE_SPEED
  • Ball Speed: Modify BALL_SPEED_X and BALL_SPEED_Y
  • Winning Score: Change WINNING_SCORE constant
  • Colors: Customize WHITE and BLACK variables

Português

🎯 Recursos

  • Menu Interativo: Inicie o jogo pressionando ENTER
  • Jogabilidade Responsiva: Controle as raquetes com movimento suave e física realista da bola
  • Rastreamento de Pontuação: Exibição em tempo real da pontuação para ambos os jogadores
  • Condição de Vitória: O primeiro jogador a alcançar 5 pontos vence o jogo
  • Funcionalidade de Pausa: Pause e retome o jogo usando a tecla P
  • Opção de Reset: Redefina instantaneamente a posição da bola com a tecla ESPAÇO
  • Timer de Contagem Regressiva: Contagem regressiva de três segundos antes de cada rodada
  • Gráficos Clássicos: Construído com a biblioteca Turtle do Python

🚀 Início Rápido

# Clonar o repositório
git clone https://github.com/eduardo2580/PongInPython.git
cd PongInPython

# Instalar dependências (se houver)
pip install -r requirements.txt

# Executar o jogo
python src/main.py

🎯 Como Jogar

  • Iniciar Jogo: Pressione ENTER no menu principal
  • Controlar Raquetes: Use as teclas designadas para mover sua raquete para cima e para baixo
  • Marcar Pontos: Faça a bola passar pela raquete do oponente
  • Vencer o Jogo: O primeiro jogador a alcançar 5 pontos vence
  • Pausar/Retomar: Use P para pausar e retomar o jogo

🎮 Controles

  • Jogador A (Raquete Esquerda):
    • Mover para Cima: W
    • Mover para Baixo: S
  • Jogador B (Raquete Direita):
    • Mover para Cima: Seta para Cima
    • Mover para Baixo: Seta para Baixo
  • Controles do Jogo:
    • ENTER: Iniciar jogo (do menu)
    • P: Pausar/Retomar jogo
    • ESPAÇO: Resetar posição da bola
    • ESCAPE: Sair do jogo

⚙️ Personalização

  • Configurações da Raquete: Ajuste PADDLE_WIDTH, PADDLE_HEIGHT e PADDLE_SPEED
  • Velocidade da Bola: Modifique BALL_SPEED_X e BALL_SPEED_Y
  • Pontuação para Vitória: Altere a constante WINNING_SCORE
  • Cores: Personalize as variáveis WHITE e BLACK

Español

🎯 Características

  • Menú Interactivo: Inicia el juego presionando ENTER
  • Jugabilidad Responsiva: Controla las paletas con movimiento suave y física realista de la pelota
  • Seguimiento de Puntuación: Visualización en tiempo real de la puntuación para ambos jugadores
  • Condición de Victoria: El primer jugador en alcanzar 5 puntos gana el juego
  • Funcionalidad de Pausa: Pausa y reanuda el juego usando la tecla P
  • Opción de Reinicio: Reinicia instantáneamente la posición de la pelota con la tecla ESPACIO
  • Temporizador de Cuenta Regresiva: Cuenta regresiva de tres segundos antes de cada ronda
  • Gráficos Clásicos: Construido con la librería Turtle de Python

🚀 Inicio Rápido

# Clonar el repositorio
git clone https://github.com/eduardo2580/PongInPython.git
cd PongInPython

# Instalar dependencias (si las hay)
pip install -r requirements.txt

# Ejecutar el juego
python src/main.py

🎯 Cómo Jugar

  • Iniciar Juego: Presiona ENTER desde el menú principal
  • Controlar Paletas: Usa las teclas designadas para mover tu paleta arriba y abajo
  • Marcar Puntos: Haz que la pelota pase la paleta de tu oponente
  • Ganar el Juego: El primer jugador en alcanzar 5 puntos gana
  • Pausar/Reanudar: Usa P para pausar y reanudar el juego

🎮 Controles

  • Jugador A (Paleta Izquierda):
    • Mover Arriba: W
    • Mover Abajo: S
  • Jugador B (Paleta Derecha):
    • Mover Arriba: Flecha Arriba
    • Mover Abajo: Flecha Abajo
  • Controles del Juego:
    • ENTER: Iniciar juego (desde menú)
    • P: Pausar/Reanudar juego
    • ESPACIO: Reiniciar posición de la pelota
    • ESCAPE: Salir del juego

⚙️ Personalización

  • Configuraciones de Paleta: Ajusta PADDLE_WIDTH, PADDLE_HEIGHT y PADDLE_SPEED
  • Velocidad de la Pelota: Modifica BALL_SPEED_X y BALL_SPEED_Y
  • Puntuación para Ganar: Cambia la constante WINNING_SCORE
  • Colores: Personaliza las variables WHITE y BLACK

Made with ❤️ using Python 3.x & Turtle Graphics

© 2025 Eduardo Souza Rodrigues - Licensed under MIT License
Classic Pong Game Recreation for Educational and Entertainment Purposes

About

Pong game like Atari in English, written in Python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages