{"id":16577908,"url":"https://github.com/compufox/trivial-gamekit-sprite","last_synced_at":"2025-03-05T20:32:09.801Z","repository":{"id":71050533,"uuid":"349608543","full_name":"compufox/trivial-gamekit-sprite","owner":"compufox","description":"trivial-gamekit module for handling sprites and spritesheets","archived":false,"fork":false,"pushed_at":"2021-03-29T13:41:43.000Z","size":7,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-02T04:44:02.518Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Common Lisp","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/compufox.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-20T02:37:16.000Z","updated_at":"2022-07-02T11:58:37.000Z","dependencies_parsed_at":"2023-06-07T16:45:24.709Z","dependency_job_id":null,"html_url":"https://github.com/compufox/trivial-gamekit-sprite","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/compufox%2Ftrivial-gamekit-sprite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compufox%2Ftrivial-gamekit-sprite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compufox%2Ftrivial-gamekit-sprite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compufox%2Ftrivial-gamekit-sprite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/compufox","download_url":"https://codeload.github.com/compufox/trivial-gamekit-sprite/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242099427,"owners_count":20071532,"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-11T22:12:35.933Z","updated_at":"2025-03-05T20:32:09.759Z","avatar_url":"https://github.com/compufox.png","language":"Common Lisp","funding_links":[],"categories":[],"sub_categories":[],"readme":"# trivial-gamekit-sprite\n### _ava fox_\n\ntrivial-gamekit module for sprites\n\n## API\n\n`(make-spritesheet image \u0026rest frames)`\n\ncreates and returns a spritesheet based off of IMAGE, with FRAMES\n\neach form in FRAMES should be of the form (IDENTIFIER VEC2-ORIGIN VEC2-SIZE)\n\nplease see `example/main.lisp` for an example\n\n---\n\n`(make-sprite spritesheet \u0026key (coordinates gamekit::+origin+) (render t) (rotation 0) animate (frame-length 0) (scale (vec2 1 1)) frames state flip-x flip-y)`\n\ncreates and returns a sprite\n\nCOORDINATES the location of the sprite\n\nROTATION the rotation of the sprite (in radians)\n\nSCALE the size of the sprite\n\nFRAMES the sprite's frames from SPRITESHEET \n\nRENDER whether or not to draw the sprite\n\nANIMATE whether or not the sprite should animate (increments through FRAMES one by one)\n\nFRAME-LENGTH how long each frame should last when animating\n\nFLIP-H if non-nil flips sprite horizontally\n\nFLIP-V if non-nil flips sprite vertically\n\n---\n\n`(draw-sprite sprite)`\n\ndraws a SPRITE\n\n---\n\n`(draw-sprites \u0026rest sprites)`\n\ndraws SPRITES\n\n---\n\n`(deg-\u003erad degrees)`\n\nconverts DEGREES to radians\n\n---\n\n`(rad-\u003edeg radians)`\n\nconverts RADIANS to degrees\n\n---\n\naccessors exported: \n`coordinates` `rotation` `render` `animate`\n`spritesheet` `current-frame` `frame-length`\n`image` `scale` `state` `flip-h` `flip-v`\n\n## License\n\nMIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompufox%2Ftrivial-gamekit-sprite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcompufox%2Ftrivial-gamekit-sprite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompufox%2Ftrivial-gamekit-sprite/lists"}