{"id":20471637,"url":"https://github.com/abdullahazharkhan/tabletennis-sdl2","last_synced_at":"2025-07-19T12:33:37.827Z","repository":{"id":211146805,"uuid":"723767476","full_name":"abdullahazharkhan/TableTennis-SDL2","owner":"abdullahazharkhan","description":"Pong game built with SimpleDirectmediaLayer (SDL2), in C language.","archived":false,"fork":false,"pushed_at":"2023-12-10T13:34:19.000Z","size":6357,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-05T13:48:43.074Z","etag":null,"topics":["clanguage","pong-game","sdl2"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abdullahazharkhan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-11-26T17:46:59.000Z","updated_at":"2024-05-16T21:03:15.000Z","dependencies_parsed_at":"2023-12-10T14:39:38.257Z","dependency_job_id":null,"html_url":"https://github.com/abdullahazharkhan/TableTennis-SDL2","commit_stats":null,"previous_names":["abdullahazharkhan/table-tennis-in-c","abdullahazharkhan/tabletennis-sdl2"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abdullahazharkhan/TableTennis-SDL2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahazharkhan%2FTableTennis-SDL2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahazharkhan%2FTableTennis-SDL2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahazharkhan%2FTableTennis-SDL2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahazharkhan%2FTableTennis-SDL2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abdullahazharkhan","download_url":"https://codeload.github.com/abdullahazharkhan/TableTennis-SDL2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahazharkhan%2FTableTennis-SDL2/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265934208,"owners_count":23852089,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clanguage","pong-game","sdl2"],"created_at":"2024-11-15T14:16:49.242Z","updated_at":"2025-07-19T12:33:37.811Z","avatar_url":"https://github.com/abdullahazharkhan.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Table Tennis Game (Pong) - C with SDL2\n\nTable Tennis is a Pong game developed in C using the SDL2 library. This game offers an immersive experience with the following features:\n\n## Features\n\n### Colorful GUI\nThe game boasts a vibrant and visually appealing graphical user interface with a spectrum of colors enhancing the gaming experience.\n\n### Player vs. Simple AI Bot\nChallenge yourself against a simple AI bot designed to engage players in thrilling matches.\n\n### Bot Losing a Point\nThe AI bot participates actively, not just in scoring but also in conceding points, ensuring a dynamic and competitive gameplay environment.\n\n### Interactive Score Bar\nA dynamic score bar located below the gameplay area reflects the ongoing score status:\n- Turns red when the AI scores.\n- Turns blue when the player scores.\nThe score bar also moves towards the paddle that scores a point, providing a clear visual cue of the current scorer.\n\n### ScoreBoard.txt\nThe game maintains a file named \"ScoreBoard.txt\" to track scores throughout the gameplay. At the game's conclusion, the file displays the winner based on the accumulated scores.\n\n### Score Display in Window Title\nThe current score is prominently displayed in the window title during gameplay, allowing players to track the progress without distractions.\n\n## Implementation Details\n\n### Usage\nPlayers can refer to the README file for instructions on building, running, and enjoying the Table Tennis game.\n\n## Command to Compile\n```html\ngcc -Isrc/include -Lsrc/lib -o main main.c -lmingw32 -lSDL2main -lSDL2\n```\n\n## Acknowledgements\nThe game development acknowledges the use of the SDL2 library and other relevant resources or tools contributing to the creation of this engaging gaming experience.\n\n![rally](https://github.com/abdullahazharkhan/TableTennis-SDL2/assets/109475658/0816b0d4-18df-4621-987e-1f324a5b01aa)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullahazharkhan%2Ftabletennis-sdl2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdullahazharkhan%2Ftabletennis-sdl2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullahazharkhan%2Ftabletennis-sdl2/lists"}