{"id":25902728,"url":"https://github.com/scriptraccoon/sprite-animation","last_synced_at":"2026-06-08T17:31:34.027Z","repository":{"id":128642520,"uuid":"432804464","full_name":"ScriptRaccoon/Sprite-Animation","owner":"ScriptRaccoon","description":"Basic template for a Platformer in JavaScript including Sprite animations.","archived":false,"fork":false,"pushed_at":"2024-01-26T00:06:44.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-03T03:17:12.639Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://sprite-anima.netlify.app","language":"JavaScript","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/ScriptRaccoon.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}},"created_at":"2021-11-28T19:24:08.000Z","updated_at":"2022-03-28T22:38:28.000Z","dependencies_parsed_at":"2023-03-21T02:49:34.889Z","dependency_job_id":null,"html_url":"https://github.com/ScriptRaccoon/Sprite-Animation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ScriptRaccoon/Sprite-Animation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptRaccoon%2FSprite-Animation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptRaccoon%2FSprite-Animation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptRaccoon%2FSprite-Animation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptRaccoon%2FSprite-Animation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ScriptRaccoon","download_url":"https://codeload.github.com/ScriptRaccoon/Sprite-Animation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptRaccoon%2FSprite-Animation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34073685,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-03-03T03:17:14.368Z","updated_at":"2026-06-08T17:31:34.009Z","avatar_url":"https://github.com/ScriptRaccoon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sprite animation in JavaScript\n\nThis is a basic template for a Platformer in JavaScript including Sprite animations.\n\nDemo: https://sprite-anima.netlify.app\n\nThere are three canvases, one for the background, one for the tiles (not redrawn during the game loop) and one for the game entities.\n\nThe game entities are divided into the following classes:\n\n-   Rectangles\n-   Sprites (can be animated, follow some physics, and may have optional features)\n-   Players (sprites with collision detection which can be controlled to walk, jump and plant flowers)\n-   Birds (sprites which fly back and forth)\n\nBoth controls and features are made reusable, so that they can also be applied to other classes of sprites. It is not a complete game, and has just one level, but it can easily be extended to a proper game. The timer class is borrowed from [here](https://github.com/meth-meth-method/super-mario).\n\nThis is a continuation of my [previous template](https://github.com/ScriptRaccoon/jump-and-run-template) where all entities where drawn just as plain rectangles. The branch 'setup' in this repository roughly starts from there (except that there is no game class and no push function for boxes).\n\nThe spritesheets used here are from [opengameart](https://opengameart.org) (with slight edits).\n\n-   Player: https://opengameart.org/content/hero-spritesheets-ars-notoria\n-   Tiles: https://opengameart.org/content/platformer-tilesets\n-   Birds: https://opengameart.org/content/lpc-birds\n-   Clouds: https://opengameart.org/content/old-frogatto-clouds-2\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscriptraccoon%2Fsprite-animation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscriptraccoon%2Fsprite-animation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscriptraccoon%2Fsprite-animation/lists"}