Skip to content

wldoooon/pongGame

Repository files navigation

Pong Game with Raylib

A simple implementation of the classic Pong game built using the Raylib library.

Watch Gameplay Video Preview

Features

  • Classic two-player Pong gameplay (Player Vs Ai)
  • Score tracking

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • A C/C++ compiler (like GCC/MinGW or the one included with Visual Studio) C++
  • Raylib library installed or set up for your build environment. 📚

Installation & Running

  1. Clone the repository:

    git clone https://github.com/wldoooon/pongGame.git
    cd pongGame
  2. Compile the code:

    Example using GCC/MinGW (if raylib is installed system-wide or in a known path):

    gcc main.c -o pong_game -lraylib -lopengl32 -lgdi32 -lwinmm

    Example if using a Makefile:

    make

    Example if using Visual Studio: Open the .sln file and build the solution (Ctrl+Shift+B).

  3. Run the executable: ▶️ After successful compilation, an executable file (e.g., pong_game.exe or similar) will be created.

    .\pong_game.exe

How to Play

  • Player Controls: ⌨️

    • Up: K key
    • Down: J key
  • Objective: Score points by making the ball pass your opponent's paddle. The first player to reach [Your Winning Score] points wins. 🏆

  • Raylib - The game development library used

  • C / C++ - Core language

About

A classic Pong game implementation using the Raylib library in C/C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages