{"id":20523138,"url":"https://github.com/kodesun/bouncy-ball","last_synced_at":"2025-03-06T00:45:04.202Z","repository":{"id":252315604,"uuid":"799851154","full_name":"kodesun/Bouncy-Ball","owner":"kodesun","description":"SFML application that simulates real-world physics utilizing a bouncy ball that you can interact with 📐🎱","archived":false,"fork":false,"pushed_at":"2024-10-20T01:42:18.000Z","size":2081,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T10:50:26.505Z","etag":null,"topics":["bouncy-ball","physics-simulation","sfml-game"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kodesun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-13T08:17:15.000Z","updated_at":"2024-10-20T01:42:23.000Z","dependencies_parsed_at":"2025-01-16T10:44:37.323Z","dependency_job_id":"c1c3121c-1879-43c0-a698-95b62e7299a7","html_url":"https://github.com/kodesun/Bouncy-Ball","commit_stats":null,"previous_names":["sudfish/bouncy-ball","kodesun/bouncy-ball"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodesun%2FBouncy-Ball","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodesun%2FBouncy-Ball/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodesun%2FBouncy-Ball/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodesun%2FBouncy-Ball/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kodesun","download_url":"https://codeload.github.com/kodesun/Bouncy-Ball/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242128320,"owners_count":20076177,"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":["bouncy-ball","physics-simulation","sfml-game"],"created_at":"2024-11-15T22:38:05.968Z","updated_at":"2025-03-06T00:45:04.186Z","avatar_url":"https://github.com/kodesun.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bouncy Ball 📐🎱\n\nThis simple SFML application simulates real-world physics utilizing a little bouncy ball. \nUsers can interact with the ball, by clicking it and disabling/enabling the gravity\nand damping applied to the ball observe it's realistic behavior as it bounces around the screen. \n\n## Requirements \n- SFML Library - Ensure that you have the SFML library installed.\n- C++ Compiler\n- CMake (or other linking tool)\n\n# Installation\n- Make sure to have SFML already installed\n- In the project directory run `chmod +x compile.sh` to build and run.\n\n## Features \n* **Realistic Physics**: The application incorporates real-world physics principles, mainly gravity and damping. \n* **Interactive**: Users can interact with the ball by clicking and dragging it around the screen.\n* **Visual Feedback**: Demonstrates the effects of gravity, momentum, collisions, acceleration and velocity.\n\n## Design\n\nUtilized a simple **_OOP_** approach to separate shared data, window functions, collision detection and ball actions. \nA cooler example of a **_state machine_** design can be viewed in my [Flappy Bird](https://github.com/sudfish/Flappy-Bird) recreation. \n\n## Demo\n\n![Demo GIF](demo/demo.GIF)\n\n## Controls\n\n* `P` to toggle Pause\n* `Q` to Quit\n* 'D' to toggle Damping\n* 'G' to toggle Gravity\n* `Mouse` to drag the ball and give it acceleration\n\n---\n\nFeel free to use this however you like. \n- [@kodesun](https://github.com/kodesun)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkodesun%2Fbouncy-ball","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkodesun%2Fbouncy-ball","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkodesun%2Fbouncy-ball/lists"}