{"id":15641356,"url":"https://github.com/robrix/starlight","last_synced_at":"2025-04-30T09:09:58.436Z","repository":{"id":66711147,"uuid":"225963076","full_name":"robrix/starlight","owner":"robrix","description":"spaceships in space","archived":false,"fork":false,"pushed_at":"2020-10-25T02:25:48.000Z","size":6821,"stargazers_count":71,"open_issues_count":1,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-30T09:09:51.028Z","etag":null,"topics":["game","haskell","opengl"],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robrix.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":"2019-12-04T21:47:51.000Z","updated_at":"2025-02-16T06:17:14.000Z","dependencies_parsed_at":"2023-02-27T18:46:12.855Z","dependency_job_id":null,"html_url":"https://github.com/robrix/starlight","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/robrix%2Fstarlight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robrix%2Fstarlight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robrix%2Fstarlight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robrix%2Fstarlight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robrix","download_url":"https://codeload.github.com/robrix/starlight/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251674577,"owners_count":21625644,"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","haskell","opengl"],"created_at":"2024-10-03T11:42:18.481Z","updated_at":"2025-04-30T09:09:58.415Z","avatar_url":"https://github.com/robrix.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `starlight`\n\n\u003cimg width=\"2048\" alt=\"screenshot showing player’s ship in quite a close approach to Mercury\" src=\"https://user-images.githubusercontent.com/59671/74091980-28e20780-4a8c-11ea-8ed8-15247cb06eaf.png\"\u003e\n\n\n## Development\n\nDevelopment currently assumes a Mac with `ghc` 8.8 \u0026 `cabal` 3.0. You can install them directly, or use [`ghcup`](https://www.haskell.org/ghcup/).\n\nInitial setup:\n\n```bash\nbrew bundle # for sdl2 \u0026 sqlite3\ncat data/ephemerides.sql | sqlite3 data/data.db # to populate the solar system db with planets\ncat data/factions.sql | sqlite3 data/data.db # to populate the solar system db with factions\ncabal build # to set up dist-newstyle with the ghc package db\n```\n\nRun `script/repl` to load the project (both library \u0026 executable) into the REPL. In the REPL, `:main` will launch the game. Use `:main --profile` to enable profiling (timings for various parts of the game, shown on exit).\n\nAlternatively, `cabal run starlight` will launch the game. Use `cabal run starlight -- --profile` to enable profiling.\n\n\n## Controls\n\nControls are currently hard-coded; I intend to eventually make them configurable.\n\n- Up arrow: forward thrust\n- Left/right arrows: turn left/right\n- Down arrow: turn to face opposite direction from current heading (relative to target’s heading, if any, or absolute otherwise; helps you match speed and heading to target’s)\n- +/-: increase/decrease throttle (controls rate of thrust)\n- tab/shift tab: switch to the next/prev target\n- escape: clear the target\n- space: fire weapons in the direction you’re facing\n- t: turn to face the selected target (if any)\n- f: face in the direction the ship is moving\n- b: brake/match speed to target\n- j: jump to the target (if any)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobrix%2Fstarlight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobrix%2Fstarlight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobrix%2Fstarlight/lists"}