{"id":17529617,"url":"https://github.com/nullobject/flatland","last_synced_at":"2025-11-08T19:30:32.835Z","repository":{"id":9120113,"uuid":"10905481","full_name":"nullobject/Flatland","owner":"nullobject","description":null,"archived":false,"fork":false,"pushed_at":"2014-02-26T02:50:19.000Z","size":796,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-28T04:46:47.873Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","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/nullobject.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}},"created_at":"2013-06-24T10:44:42.000Z","updated_at":"2023-06-11T18:08:11.000Z","dependencies_parsed_at":"2022-07-09T23:00:33.109Z","dependency_job_id":null,"html_url":"https://github.com/nullobject/Flatland","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/nullobject%2FFlatland","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullobject%2FFlatland/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullobject%2FFlatland/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullobject%2FFlatland/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nullobject","download_url":"https://codeload.github.com/nullobject/Flatland/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239559822,"owners_count":19659120,"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-10-20T16:22:09.059Z","updated_at":"2025-11-08T19:30:32.791Z","avatar_url":"https://github.com/nullobject.png","language":"Objective-C","readme":"# Flatland\n\nFlatland is a multi-player game where each player is controller by actions sent\nover HTTP.\n\n## Actions\n\nEvery action costs the player a set amount of energy points.\n\nAll requests must include the `X-Player` header. The server will respond with\nthe world view for the player.\n\n    {\n      player: {...}\n    }\n\n### Spawn\n\nSpawns the player in the world.\n\nFor example:\n\n`curl -i -X PUT -H 'X-Player: 5108B670-3332-4172-862D-89BF68576ED6' -H 'Content-Type: application/json' -d '' http://localhost:8000/player/spawn`\n\n### Rest\n\nRests the player for a given amount of time, where amount is a value between\n-1.0 and 1.0. The player restores 10 energy points for each tick of the world\nclock.\n\nFor example:\n\n`curl -i -X PUT -H 'X-Player: 5108B670-3332-4172-862D-89BF68576ED6' -H 'Content-Type: application/json' -d '{\"amount\":1.0}' http://localhost:8000/player/rest`\n\n### Move\n\nMoves the player in the direction they are facing by a given amount, where\namount is a value between -1.0 and 1.0. The player uses 20 energy points for\nmoving.\n\nFor example:\n\n`curl -i -X PUT -H 'X-Player: 5108B670-3332-4172-862D-89BF68576ED6' -H 'Content-Type: application/json' -d '{\"amount\":1.0}' http://localhost:8000/player/move`\n\n### Turn\n\nTurns the player by a given amount, where amount is a value between -1.0 and\n1.0. The player uses 20 energy points for turning.\n\nFor example:\n\n`curl -i -X PUT -H 'X-Player: 5108B670-3332-4172-862D-89BF68576ED6' -H 'Content-Type: application/json' -d '{\"amount\":1.0}' http://localhost:8000/player/turn`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullobject%2Fflatland","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnullobject%2Fflatland","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullobject%2Fflatland/lists"}