{"id":13718752,"url":"https://github.com/dojoengine/stark-lander","last_synced_at":"2025-10-12T17:31:30.317Z","repository":{"id":180702345,"uuid":"660825672","full_name":"dojoengine/stark-lander","owner":"dojoengine","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-31T12:04:11.000Z","size":597,"stargazers_count":13,"open_issues_count":5,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T16:36:07.164Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/dojoengine.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-01T00:30:31.000Z","updated_at":"2024-11-15T15:24:01.000Z","dependencies_parsed_at":"2024-11-14T08:41:46.557Z","dependency_job_id":null,"html_url":"https://github.com/dojoengine/stark-lander","commit_stats":null,"previous_names":["dojoengine/stark-lander"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dojoengine/stark-lander","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dojoengine%2Fstark-lander","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dojoengine%2Fstark-lander/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dojoengine%2Fstark-lander/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dojoengine%2Fstark-lander/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dojoengine","download_url":"https://codeload.github.com/dojoengine/stark-lander/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dojoengine%2Fstark-lander/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279012191,"owners_count":26085079,"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","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-03T01:00:37.025Z","updated_at":"2025-10-12T17:31:29.851Z","avatar_url":"https://github.com/dojoengine.png","language":"TypeScript","funding_links":[],"categories":["Open-source projects","Projects Using Dojo"],"sub_categories":[],"readme":"\u003cimg alt=\"Dojo logo\" src=\".github/lander.png\"\u003e\n\n---\n\u003cpicture\u003e\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\".github/mark-dark.svg\"\u003e\n  \u003cimg alt=\"Dojo logo\" align=\"right\" width=\"120\" src=\".github/mark-light.svg\"\u003e\n\u003c/picture\u003e\n\n\u003ca href=\"https://twitter.com/dojostarknet\"\u003e\n\u003cimg src=\"https://img.shields.io/twitter/follow/dojostarknet?style=social\"/\u003e\n\u003c/a\u003e\n\u003ca href=\"https://github.com/dojoengine/dojo\"\u003e\n\u003cimg src=\"https://img.shields.io/github/stars/dojoengine/dojo?style=social\"/\u003e\n\u003c/a\u003e\n\n[![discord](https://img.shields.io/badge/join-dojo-green?logo=discord\u0026logoColor=white)](https://discord.gg/PwDa2mKhR4)\n[![Telegram Chat][tg-badge]][tg-url]\n\n[tg-badge]: https://img.shields.io/endpoint?color=neon\u0026logo=telegram\u0026label=chat\u0026style=flat-square\u0026url=https%3A%2F%2Ftg.sumanjay.workers.dev%2Fdojoengine\n[tg-url]: https://t.me/dojoengine\n\n## Stark Lander\n\nAn onchain interpretation of the classic game [Lunar Lander](https://en.wikipedia.org/wiki/Lunar_Lander_(video_game_genre)). Try and land on the ground with a velocity of 0.1m/s. All computation is calculated in [Cairo](https://book.cairo-lang.org/title-page.html) and the game is built using the Dojo engine.\n\n\n### Systems\n- `Start`: Spawns a Lander with some random coordinates\n- `Burn`: Adjusts the trajectory of the Lander according to inputs\n- `Position`: Returns live position of the Lander\n- `Win`: Create Win condition\n\n### Components\n- `Lander`: Lander state and computed values\n- `Fuel` : TODO: abstract from Lander component\n\n### Game loop\n1. Players spawn a lander with `start`\n2. Input thrust and angle on each action\n3. Compute position according to block and tick forward at constant rate\n4. Determine if lander arrives at surface of planet at the correct angle and correct speed\n\n## Pre-requisites\n\n### Clone\n\n```console\ngit clone https://github.com/dojoengine/stark-lander.git\n```\n\n### Install Dojo\n\n```console\ncurl -L https://install.dojoengine.org | bash\n\ndojoup\n```\n\n## Running the game\n\n### Katana\nRun Katana in a terminal window using the following command:\n\n```console\nkatana --allow-zero-max-fee --block-time 1\n```\n\n### Contract\nSwitch to a new terminal window and run the following commands:\n\n```console\ncd contract\n\nsozo build // Build World\n\nsozo migrate // Migrate World\n```\n\n### Client\nIn another terminal window, start the client server by running the following command:\n\n```console\ncd client\n\nyarn\n\nyarn dev\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdojoengine%2Fstark-lander","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdojoengine%2Fstark-lander","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdojoengine%2Fstark-lander/lists"}