{"id":13549664,"url":"https://github.com/jaredly/gravitron","last_synced_at":"2025-04-05T12:07:57.782Z","repository":{"id":66952734,"uuid":"112057909","full_name":"jaredly/gravitron","owner":"jaredly","description":"a little game","archived":false,"fork":false,"pushed_at":"2023-10-20T08:20:25.000Z","size":19932,"stargazers_count":492,"open_issues_count":9,"forks_count":19,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-03-29T11:09:39.305Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://gravitron.jaredforsyth.com","language":"OCaml","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/jaredly.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,"roadmap":null,"authors":null}},"created_at":"2017-11-26T05:20:09.000Z","updated_at":"2025-01-12T09:51:57.000Z","dependencies_parsed_at":"2024-01-06T20:54:36.513Z","dependency_job_id":null,"html_url":"https://github.com/jaredly/gravitron","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredly%2Fgravitron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredly%2Fgravitron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredly%2Fgravitron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredly%2Fgravitron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaredly","download_url":"https://codeload.github.com/jaredly/gravitron/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247332612,"owners_count":20921853,"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":[],"created_at":"2024-08-01T12:01:24.209Z","updated_at":"2025-04-05T12:07:57.748Z","avatar_url":"https://github.com/jaredly.png","language":"OCaml","funding_links":[],"categories":["OCaml","Reason"],"sub_categories":["Example Apps"],"readme":"# [Gravitron](https://gravitron.jaredforsyth.com/)\n\n- Get it from the [iOS app store](https://itunes.apple.com/us/app/gravitron-master-gravity/id1330043938)\n- Get it from the [Android play store](https://play.google.com/store/apps/details?id=com.jaredforsyth.gravitron)\n- [Play it on the web](https://gravitron.jaredforsyth.com/) (desktop only)\n\n\nthis is a little game I'm cooking up, written in [Reason](https://reasonml.github.io), using [Reprocessing](https://github.com/Schmavery/reprocessing) (a cross-platform opengl-backed 2d-graphics library).\n\nTry it out at http://gravitron.jaredforsyth.com/, and tell me what you think!\n\nDownload the osx native version from the [releases](https://github.com/jaredly/gravitron/releases) page.\n\n![gameplay](gameplay.gif)\n\n## Building (currently broken 🙃, working on a more general solution)\n\n```\ngit submodule update --init --recursive\nyarn\n```\n\n### Web\n\n(assuming you have `http-server` installed, via `yarn global add http-server`)\n```\nnpm run js \u0026\u0026 npm run js:serve\n```\n\nThen open your browser to `http://localhost:3121`\n\nIf you don't have http-server, you can run `npm run js` and start your favorite webserver in the `docs` directory.\n\n### Native macOS\n\n(development)\n```\nnpm run build\nnpm start\n```\n\n(release, make a mac app)\n```\nnpm run build:native\ncd bundler \u0026\u0026 ./bundle.sh\n```\n\nNow you've got a mac app in `./bundler/Gravitron.app`.\n\n### Android\n\nNOTE: You must have opam setup for this to work.\nALSO NOTE: Ocaml currently produces binaries that have \"text relocations\", which android is unhappy about. So you'll get a popup in the dev build, but it doesn't show in the release build.\n\n```\n./reasongl-android/setup_opam.sh # this is idempotent\nnpm run build:android\n```\n\nIf you also want to install the debug apk to a simulator or device, do `npm run run:android`.\n\n### iOS\n\nNOTE: You must have opam setup for this to work.\n\n```\n./reasongl-ios/setup_opam.sh # this is idempotent\nnpm run build:ios\n```\n\nThen open the project `./ios/OcamlIOS.xcodeproj` in Xcode, and you should be able to build \u0026 run.\n\n## Contributing\n\n### Android\nSome good resources\n- https://docs.oracle.com/javase/7/docs/technotes/guides/jni/spec/types.html\n- https://caml.inria.fr/pub/docs/manual-ocaml/intfc.html\n\n## License\n\nThis code is licensed under [Creative Commons Attribution-NonCommercial 4.0](https://creativecommons.org/licenses/by-nc/4.0/legalcode) (CC BY-NC 4.0). If you use this code, you must attribute me (Jared Forsyth), and link back to this repository.\nIf you want me to license parts of the codebase under a more permissive license, such as one that allows commercial use, you're welcome to ask.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredly%2Fgravitron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaredly%2Fgravitron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredly%2Fgravitron/lists"}