Skip to content

Sachdevabhavya/Pong-in-Raylib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pong Game

This is a simple Pong game created using the Raylib library. The game allows two players to control paddles and bounce a ball back and forth. The objective is to score points by getting the ball past the opponent's paddle.

Table of contents:

How to Play

  • Player 1 controls the left paddle:

    • Press 'W' to move the paddle up.
    • Press 'S' to move the paddle down.
  • Player 2 controls the right paddle:

    • Press the 'UP' arrow key to move the paddle up.
    • Press the 'DOWN' arrow key to move the paddle down.
  • The game keeps track of your score, displayed at the top of the screen.

  • The game will restart when one player scores a point.

Features

  • Simple and intuitive controls for two players.
  • Score tracking for both players.
  • Collision detection for paddles and walls.
  • Ball bouncing and movement.

How to Build and Run

  1. Clone or download the repository to your local machine.

  2. Make sure you have Raylib installed. You can download it from the official website: Raylib Download

  3. Compile and run the game using a C compiler.

  4. Follow the on-screen instructions to play the game.

Controls

  • Player 1:

    • Move up: 'W'
    • Move down: 'S'
  • Player 2:

    • Move up: 'UP' arrow key
    • Move down: 'DOWN' arrow key
  • Quit the game: Close the game window or press the 'ESC' key.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages