{"id":28211651,"url":"https://github.com/user95401/geode-gif-sprites-api","last_synced_at":"2025-07-14T07:32:49.255Z","repository":{"id":292502551,"uuid":"981105042","full_name":"user95401/geode-gif-sprites-api","owner":"user95401","description":"Adds support for animated gif files in CCSprite::create(), returns CCGIFAnimatedSprite.","archived":false,"fork":false,"pushed_at":"2025-06-17T19:03:32.000Z","size":845,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-17T20:18:22.259Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://geode-sdk.org/mods/user95401.gif-sprites","language":"C","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/user95401.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null}},"created_at":"2025-05-10T10:57:08.000Z","updated_at":"2025-06-17T19:00:38.000Z","dependencies_parsed_at":"2025-06-10T10:47:03.545Z","dependency_job_id":null,"html_url":"https://github.com/user95401/geode-gif-sprites-api","commit_stats":null,"previous_names":["user95401/geode-gif-sprites-api"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/user95401/geode-gif-sprites-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/user95401%2Fgeode-gif-sprites-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/user95401%2Fgeode-gif-sprites-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/user95401%2Fgeode-gif-sprites-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/user95401%2Fgeode-gif-sprites-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/user95401","download_url":"https://codeload.github.com/user95401/geode-gif-sprites-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/user95401%2Fgeode-gif-sprites-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265255274,"owners_count":23735222,"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":"2025-05-17T18:09:48.437Z","updated_at":"2025-07-14T07:32:49.247Z","avatar_url":"https://github.com/user95401.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GIF Sprites\n\nAdds support for animated **GIF** files in `CCSprite::create()` for Geometry Dash using **giflib** v5.0.0!\n\n## Usage\n\nIf the filename ends with `.gif` or header is `GIF87a` or `GIF89a` (you can use gif file named as `anim.png`), a `CCGIFAnimatedSprite` will be returned instead of a `CCSprite`.\nThe animation plays automatically and uses embedded frame delays.\n\n```cpp\nauto gif = CCSprite::create(\"animated.gif\"); //returns CCGIFAnimatedSprite*\ngif-\u003esetPosition(this-\u003egetContentSize() / 2);\nthis-\u003eaddChild(gif, 10);\n```\n\nOr if you included `\u003cuser95401.gif-sprites/include/CCGIFAnimatedSprite.hpp\u003e`:\n\n```cpp\n#include \u003cuser95401.gif-sprites/include/CCGIFAnimatedSprite.hpp\u003e\n\nauto gif = CCGIFAnimatedSprite::create(\"animated.gif\");\ngif-\u003esetPosition(this-\u003egetContentSize() / 2);\nthis-\u003eaddChild(gif, 10);\n\n//mbo stuff\ngif-\u003eplay();\ngif-\u003epause();\ngif-\u003estop();\ngif-\u003esetLoop(false);\nbool playing = gif-\u003eisPlaying();\nauto filename = gif-\u003em_filename; //str\n```\n\nUsing texture pack (or any other resource modding ways) you can replace some files like `GJ_gradientBG.png`, just rename your `epic-anime-wallpaper.gif` exactly to `GJ_gradientBG.png`, mod detect it as long as this file is GIF87a or GIF89a.\n\n## Features\n\n- Hooks `CCSprite::create(const char*)` to support creating animated sprites from GIF file.\n- Frame decoding with correct delays\n- Automatic animation loop\n- Shared caching on repeated loads\n- Lightweight and early-load safe\n\n## Integration\n\nAdd to your `mod.json` dependencies:\n\n```json\n\"dependencies\": {\n\t\"user95401.gif-sprites\": \"\u003e=v2.0.0\"\n}\n```\n\nAnd include headers (optional):\n\n```cpp\n#include \u003cuser95401.gif-sprites/include/CCGIFAnimatedSprite.hpp\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuser95401%2Fgeode-gif-sprites-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuser95401%2Fgeode-gif-sprites-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuser95401%2Fgeode-gif-sprites-api/lists"}