This MakeCode Arcade extension provides blocks that create and manipulate circle sprites. It is "Best" in a series of similar extensions dubbed good-better-best. A program using this extension must also install Arcade Sprite Data Extension from the Arcade dashboard. Alternatively, the extension arcade-sprite-data-revised can be used.
This extension is "Best" because unlike circle-ext-better ("Better")and circle-ext-good ("Good"), in this extension a circle is a sprite, which enables it to be used with all sprite blocks, e.g., , sprite properties, sprite arrays and on-sprite-overlap blocks. Although Better and Good have the same capabilities as Best, either they are awkard to use or obtuse to implement.
myCircle = circle.createCircle(ndx, color)
myCircle = circle.createCircle(ndx, color)
This repository can be added as an extension in MakeCode.
- open https://arcade.makecode.com/
- click on New Project
- click on Extensions under the gearwheel menu
- search for *https://github.com/wecodemakecode/circle-best-ext and import
To edit this repository in MakeCode.
- open https://arcade.makecode.com/
- click on Import then click on Import URL
- paste *https://github.com/wecodemakecode/circle-best-ext and click import
- for PXT/arcade