{"id":23318476,"url":"https://github.com/mcb2003/tile-maps-rs","last_synced_at":"2025-04-07T05:18:12.446Z","repository":{"id":94723068,"uuid":"458499942","full_name":"mcb2003/tile-maps-rs","owner":"mcb2003","description":"Helpers for working with 2D maps of tiles common in games","archived":false,"fork":false,"pushed_at":"2022-02-12T14:48:52.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T09:31:38.350Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/mcb2003.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":"2022-02-12T11:19:00.000Z","updated_at":"2022-02-12T11:19:16.000Z","dependencies_parsed_at":"2023-03-06T01:45:23.902Z","dependency_job_id":null,"html_url":"https://github.com/mcb2003/tile-maps-rs","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/mcb2003%2Ftile-maps-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcb2003%2Ftile-maps-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcb2003%2Ftile-maps-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcb2003%2Ftile-maps-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcb2003","download_url":"https://codeload.github.com/mcb2003/tile-maps-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247595335,"owners_count":20963943,"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-12-20T17:17:08.978Z","updated_at":"2025-04-07T05:18:12.440Z","avatar_url":"https://github.com/mcb2003.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tile-maps\n\nHelpers for working with 2D maps of tiles common in games.\n\n## Features\n\n-   [x] Convenient API to get and set tiles\n-   [x] Use any type that implements `Default` as a tile\n-   [x] stack-allocated, fixed-size maps with `StaticMap`.\n-   [x] heap-allocated, dynamic maps with `DynamicMap`.\n-   [x] Borrow, mutably or immutably, regions of maps\n\n## Goals\n\n-   [ ] Resizable maps\n-   [ ] Maps stored as a graph, for easier path-finding\n-   [ ] Maps that store tiles in column-major order\n-   [ ] Maps composed of chunks\n-   [ ] Implement `Index` and `IndexMut` for map types.\n-   [ ] `MapCursor` for representing a cursor, or a player, on a tile of a map\n-   [ ] A MapViewport that you can use, along with your screen dimensions, to make it easy to draw the visible section\n    of a map\n\n## Questions\n\n-   When borrowing a region of a region, should we borrow from the root, parent map, or from the first region?\n-   Can we implement `MapRows::rows` and `MapRowsMut::rows_mut` wihtout adding another layer of dynamic dispatch to the\n    iterator?\n-   Is there any benefit, even from an API standpoint, in creating maps with interior mutability, or locking?\n\n## No STD\n\nThis crate doesn't rely on the Rust standard library. However, by default, it does rely on [`alloc`][alloc] for types\nthat allocate, like `DynamicMap`. Disabling the \"alloc\" Cargo feature will relax this requirement, and remove any types\nthat allocate.\n\n[alloc]: \u003chttps://docs.rs/alloc\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcb2003%2Ftile-maps-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcb2003%2Ftile-maps-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcb2003%2Ftile-maps-rs/lists"}