{"id":18672382,"url":"https://github.com/amhndu/gravity","last_synced_at":"2025-04-12T01:31:05.278Z","repository":{"id":23389016,"uuid":"26750725","full_name":"amhndu/gravity","owner":"amhndu","description":"Orbital survival game","archived":false,"fork":false,"pushed_at":"2021-12-14T17:22:13.000Z","size":507,"stargazers_count":13,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-25T21:21:57.526Z","etag":null,"topics":["game","gravity","sfml","survival-game"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amhndu.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}},"created_at":"2014-11-17T09:59:22.000Z","updated_at":"2024-07-04T23:52:49.000Z","dependencies_parsed_at":"2022-08-22T00:10:32.573Z","dependency_job_id":null,"html_url":"https://github.com/amhndu/gravity","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amhndu%2Fgravity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amhndu%2Fgravity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amhndu%2Fgravity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amhndu%2Fgravity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amhndu","download_url":"https://codeload.github.com/amhndu/gravity/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248504213,"owners_count":21115134,"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":["game","gravity","sfml","survival-game"],"created_at":"2024-11-07T09:11:02.203Z","updated_at":"2025-04-12T01:31:04.912Z","avatar_url":"https://github.com/amhndu.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Gravity](assets/gravity.png)\n=================================\n\n**An Orbital survival game**\n\nProject page: http://amhndu.github.io/Projects/gravity.html\n\nGravity is a survial game set in space, you are in a space station orbiting Earth but things have gone awry and you have a situation with broken satellites, how long can you survie ? (Yes, the premise is very similar to that Hollywood movie of the same name).\nProgrammed in C++11 with the [SFML](http://sfml-dev.org) library for graphics. I made this is as my final project in school. This is a clone of the HTML5 game [Orbital Debris][orbital debris].\n\nScreenshots\n-----------------------------\n\n![Screenshot 1](http://amhndu.github.io/screenshots/gravity1.jpg)\n![Screenshot 2](http://amhndu.github.io/screenshots/gravity2.jpg)\n![Screenshot 3](http://amhndu.github.io/screenshots/gravity3.jpg)\n![Screenshot 4](http://amhndu.github.io/screenshots/gravity4.jpg)\n\nGameplay video\n------------------------------\n\n(Note that this video is a bit outdated since the game now supports saving/loading, apart from the new buttons this video remains precise)\n[Youtube video](https://www.youtube.com/watch?v=LI_u30P6zTA)\n\nCompiling\n------------------------------\n\nYou need a C++11 compliant compiler and [SFML 2.0+](http://sfml-dev.org) to compile *Gravity*. After you've downloaded the source and dependencies, you can use [cmake](http://cmake.org) to compile *Gravity*.\nOn any Linux distribution, these are the typical steps :\n```\n$ git clone https://github.com/amhndu/gravity\n$ cd gravity\n$ cmake .\n$ make\n```\nIf you don't have cmake and don't wish to install it either, then you can simply compile Gravity by compiling all the cpp files and then linking them with SFML using your IDE/compiler. e.g. With g++, you can enter this command :\n```\n$ g++ -o gravity *.cpp -std=c++11 -lsfml-graphics -lsfml-window -lsfml-system\n```\nNote : To compile on windows, you also need to link the sfml-main component.\n\nLicense\n--------------------------------\nThe following images have been taken from [here][orbital debris]\n* assets/satellite\\\u003cn\u003e.png where n = {0,1,2,3}\n* assets/junk\\\u003cn\u003e.png where n = {0,1,2}\n* assets/Earth.png\n* assets/bg.png\n* assets/station.png\n\nFor code, see LICENSE\n\nContact me\n---------------------------------\nEmail : amhndu --at-- gmail --period-- com\n\n\n[orbital debris]: https://web.archive.org/web/20150717114053/http://www.allworkallplay.org/blog/orbital-debris-making-an-html5-game-with-phaser/\n[repo]: https://github.com/amhndu/gravity\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famhndu%2Fgravity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famhndu%2Fgravity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famhndu%2Fgravity/lists"}