Skip to content

hehehaha1212/ping_pong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Ping Pong

A simple Ping Pong game built entirely in C, designed to implement and reinforce the graphics programming concepts I learned while studying the book “LearnOpenGL”.


Purpose

This project marks my first hands-on experience with OpenGL. After reading LearnOpenGL, I wanted to move beyond just theory and create something interactive from scratch. This game was my way of experimenting with rendering, input handling, shaders, and real-time updates—all in low-level C.

Tools & Libraries Used

  • OpenGL – Core graphics rendering and pipeline control
  • GLFW – Window creation, context management, and keyboard input
  • GLAD – OpenGL function loader to interface with GPU features

compile with command: gcc pingpong.c glad/src/glad.c -Iinclude -lglfw -ldl -lGL -o pingpong

Features

  • Classic two-player Ping Pong gameplay
  • Real-time paddle movement and collision detection
  • Clean rendering with double buffering

Future Improvements

  • Add a basic AI opponent for single-player mode
  • Implement pause, reset, and restart functionalities
  • Add sound effects and basic UI using bitmap fonts
  • Improve collision physics and ball behavior
  • Use shaders more extensively for effects and transitions

About

ping pong game in C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages