{"id":16429108,"url":"https://github.com/codeandweb/amethyst-sprite-sheet-example","last_synced_at":"2026-03-03T00:36:07.765Z","repository":{"id":37888745,"uuid":"212317295","full_name":"CodeAndWeb/amethyst-sprite-sheet-example","owner":"CodeAndWeb","description":"Example how to use TexturePacker to create sprite sheets for your Amethyst project","archived":false,"fork":false,"pushed_at":"2023-09-25T09:06:29.000Z","size":140,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-07T21:09:38.142Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PLSQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CodeAndWeb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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-10-02T11:05:48.000Z","updated_at":"2023-09-25T08:55:49.000Z","dependencies_parsed_at":"2024-10-11T08:31:49.516Z","dependency_job_id":null,"html_url":"https://github.com/CodeAndWeb/amethyst-sprite-sheet-example","commit_stats":null,"previous_names":["codeandweb/amethyst-sprite-sheet-example","codeandweb/amethyst-spritesheet-example"],"tags_count":0,"template":false,"template_full_name":"amethyst/amethyst-starter-2d","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeAndWeb%2Famethyst-sprite-sheet-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeAndWeb%2Famethyst-sprite-sheet-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeAndWeb%2Famethyst-sprite-sheet-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeAndWeb%2Famethyst-sprite-sheet-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeAndWeb","download_url":"https://codeload.github.com/CodeAndWeb/amethyst-sprite-sheet-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240619431,"owners_count":19830204,"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-11T08:21:01.324Z","updated_at":"2026-03-03T00:36:07.690Z","avatar_url":"https://github.com/CodeAndWeb.png","language":"PLSQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://amethyst.rs\"\u003e\n    \u003cimg\n        alt=\"Amethyst\"\n        src=\"https://amethyst.rs/brand/logo-standard.svg\"\n        width=\"60\"\n    /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.codeandweb.com/texturepacker\"\u003e\n    \u003cimg\n        alt=\"TexturePacker\"\n        src=\"https://www.codeandweb.com/o/img/texturepacker512-512.png\"\n        width=\"60\"\n    /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\"\u003e\n  Amethyst spritesheet example\n\u003c/h1\u003e\n\nThis project demonstrates how you can use sprite sheets packed with [TexturePacker](https://www.codeandweb.com/texturepacker) in your Amethyst application.\n\n## Quickstart\n\n- Clone the repository\n\n```bash\ngit clone https://github.com/CodeAndWeb/amethyst-spritesheet-example.git\ncd amethyst-spritesheet-example\n```\n\n- Build and run the project\n\n```bash\ncargo run\n```\n\n## Features\n\nThis project contains the minimum amount of code needed to draw sprites to the screen. Here's a small summary of what you'll find in the source files:\n\n- `resources/sprites/fruits/*.png`\n  The individual sprites which will be packed on a sprite sheet.\n\n- `resources/sprites/fruits.tps`\n  The TexturePacker project file. Can be opened by TexturePacker UI oder command line client\n  to (re)pack the sprite sheet.\n\n- `resources/sprites/fruits.png`, `resources/sprites/fruits.ron`\n  The sprite sheet and its corresponding data file, both generated with TexturePacker.\n  The data file contains the coordinates of the sprites on the sheet.\n\n- `src/state/sprites.rs`\n  A file containing constants for all sprites, these constants can be used to access sprites by\n  name instead of by index position. This file can be generated with TexturePacker, too.\n\n- `src/main.rs`  \n  Creates the render graph, adds the required bundles, builds the game data with our own state and finally, starts the game's main event loop.\n\n- `src/state.rs`  \n  Implements the main game state. In the `on_start` hook, the camera is initialized, and the sprites that will be drawn are loaded and their entities created.  \n   In the `handle_event` hook, we print any keys that were pressed and close the window if the user presses escape or the OS requests that we quit.\n\n\n#### For Mac Users\n\nThis starter uses vulkan as a renderer by default. You'll want to change the backend to use `metal`, which can be done by opening the `Cargo.toml` file and changing\n\n```toml\n[features]\ndefault = [\"vulkan\"]\n```\n\nto\n\n```toml\n[features]\ndefault = [\"metal\"]\n```\n\nIf using OSX and Metal you will require full XCode installed from the Appstore in order to compile metal shaders.\nAfter install you may be required to run this command `sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer` [reference gfx-rs issue](https://github.com/gfx-rs/gfx/issues/2472)\n\n#### For Linux Users\n\nYou might need to install some dependencies. Please refer to [this section](https://github.com/amethyst/amethyst#dependencies) of the README for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeandweb%2Famethyst-sprite-sheet-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeandweb%2Famethyst-sprite-sheet-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeandweb%2Famethyst-sprite-sheet-example/lists"}