{"id":17447310,"url":"https://github.com/eanders-ms/cool-sprites","last_synced_at":"2025-03-28T03:42:05.865Z","repository":{"id":46648026,"uuid":"398719494","full_name":"eanders-ms/cool-sprites","owner":"eanders-ms","description":"A MakeCode project","archived":false,"fork":false,"pushed_at":"2022-12-09T06:50:52.000Z","size":284,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-02T04:45:08.482Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://eanders-ms.github.io/cool-sprites/","language":"TypeScript","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/eanders-ms.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}},"created_at":"2021-08-22T05:11:45.000Z","updated_at":"2021-10-01T18:59:11.000Z","dependencies_parsed_at":"2023-01-25T11:50:13.055Z","dependency_job_id":null,"html_url":"https://github.com/eanders-ms/cool-sprites","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/eanders-ms%2Fcool-sprites","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eanders-ms%2Fcool-sprites/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eanders-ms%2Fcool-sprites/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eanders-ms%2Fcool-sprites/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eanders-ms","download_url":"https://codeload.github.com/eanders-ms/cool-sprites/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245966929,"owners_count":20701759,"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-17T19:25:07.195Z","updated_at":"2025-03-28T03:42:05.844Z","avatar_url":"https://github.com/eanders-ms.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":" \n\n# HACK 2021 \"Cool Sprites\" Extension for Arcade\n\nI should have named this **quad sprites**. This extension defines a new kind of **Sprite** that renders itself using a native method called `drawQuad`. `drawQuad` is a generalized rendering method that can rasterize a sprite at any rotation, scale, and quadrilateral shape (trapazoid, parallelogram, rhombus, etc). *It doesn't care.*\n\nThis extension also defines a **Transform** class for use with the new Sprite type, allowing the sprite to be freely **scaled**, **translated**, and **rotated**.\n\nTransforms can be **parented**, allowing one sprite to be the **parent** of another. The **child** sprite will inherit movement, rotation, and scale from the parent, and add its own. You can think of it as being like the relationship between your arms and your body; whenever your body moves, your arms also move. They inherit the movement characteristics from the thing they're attached to.\n\n`drawQuad` implementation is here: https://github.com/microsoft/pxt-common-packages/commit/152a418ededefc191d0e608521732ea5169cdcfa\n\n**NOTE**: This extension must be used with a version of Arcade that includes the `drawQuad` function, like this one: https://arcade.makecode.com/app/7ae712dd21ba79dc363df2b2a802237a110571a2-2f277d2e1b\n\nSee the [demos](./demos) folder for some demos you can import into the above target, and see cool sprites in action!\n\n![cool cow](./demos/arcade-cool-cow-hack-2021.png)\n![cool ducks](./demos/arcade-cool-ducks-hack-2021.png)\n![cool galaga bug](./demos/arcade-cool-galaga-bug-hack-2021.png)\n![cool orrery](./demos/arcade-cool-orrery-hack-2021.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feanders-ms%2Fcool-sprites","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feanders-ms%2Fcool-sprites","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feanders-ms%2Fcool-sprites/lists"}