{"id":18944074,"url":"https://github.com/cebarks/spriteplus","last_synced_at":"2025-07-04T07:33:55.613Z","repository":{"id":47152202,"uuid":"351276958","full_name":"cebarks/spriteplus","owner":"cebarks","description":"A simple spritesheet library for use with Pixel","archived":false,"fork":false,"pushed_at":"2023-10-18T22:40:38.000Z","size":38,"stargazers_count":5,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-27T21:58:25.318Z","etag":null,"topics":["gamedev","gamedev-library","go","golang","graphics"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cebarks.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":"2021-03-25T01:48:21.000Z","updated_at":"2024-07-27T10:22:36.000Z","dependencies_parsed_at":"2024-11-08T12:44:22.328Z","dependency_job_id":"5455fa61-628b-47ad-b431-87d6652f5414","html_url":"https://github.com/cebarks/spriteplus","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/cebarks/spriteplus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cebarks%2Fspriteplus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cebarks%2Fspriteplus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cebarks%2Fspriteplus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cebarks%2Fspriteplus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cebarks","download_url":"https://codeload.github.com/cebarks/spriteplus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cebarks%2Fspriteplus/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263468968,"owners_count":23471421,"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":["gamedev","gamedev-library","go","golang","graphics"],"created_at":"2024-11-08T12:44:09.713Z","updated_at":"2025-07-04T07:33:55.587Z","avatar_url":"https://github.com/cebarks.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spriteplus\n\nspriteplus is a golang library meant to be used along side the great [Pixel](https://github.com/faiface/pixel) library. It provides a generic SpriteSheet interface, and a few implementations.\n\n---\n\n## Installation\n\n`go get github.com/cebarks/spriteplus`\n\n---\n\n## Usage\n\n```golang\nimport \"github.com/cebarks/spriteplus\"\n```\n\n### Sprite Sheets\n\n```golang\n//Create your sheet\nsheet := spriteplus.NewSpriteSheet(false)\n\n//Add your sprites to the sheet\nerr := sheet.AddSprite(gopherSprite, \"gopher\")\nif err != nil {\n  ...\n}\n\n//Optimize the texture\nsheet.Optimize()\n\n\n//These can be directly drawn to a Window (or any pixel.Target)\nsprite := sheet.GetSprite(\"gopher\") \nsprite.Draw(win, pixel.IM)\n\n// or you can efficiently draw them using a batch with sheet.SourcePic()\npic := sheet.SourcePic()\nbatch := pixel.NewBatch(\u0026pixel.TrianglesData{}, pic)\n\nsprite.Draw(batch, pixel.IM)\n\n\nbatch.Draw(win, pixel.IM)\n```\n---\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n---\n\n## License\n[GNU GPLv3](https://choosealicense.com/licenses/gpl-3.0/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcebarks%2Fspriteplus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcebarks%2Fspriteplus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcebarks%2Fspriteplus/lists"}