Skip to content

RealityMoez/sfml_pong_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SFML Pong Game

SFML Pong Game is a classic Pong game implementation using SFML (Simple and Fast Multimedia Library) and C++. Players control paddles to bounce a ball back and forth, aiming to reach the maximum score before their opponent.

Features

  • Player vs AI gameplay
  • Paddle and ball interactions
  • Win condition on maximum score
  • Restart option upon game over

Controls

  • Left Paddle: W (move up), S (move down)
  • Restart: R (when game over)

Gameplay

  • Right paddle is controlled by AI.
  • Ball bounces off paddles and screen boundaries.
  • Scoring occurs when ball bounces of left/right edge.