This extension allows you to create "minimaps". Minimaps are smaller representations of the tilemap and optionally any sprites you would like to include.
Here's the most basic way to use the minimap:
To include sprites on the minimap, use the "draw (mySprite) on (myMinimap)" block:
To constantly update the minimap based on sprite movement and tilemap changes, use "on game update":
See the forums: https://forum.makecode.com/t/minimap-extension-beta/1709
If you're updating the minimap with an "on game update" or "forever" block, be aware that this can slow your game down a lot if:
- many sprites are being draw to the minimap
- the tilemap is very large
- the updates are happening faster than every 500ms
If you notice your game running slow, try reducing the speed at which you update the minimap.
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 the URL of this repository and import
To edit this repository in MakeCode.
- open https://arcade.makecode.com/
- click on Import then click on Import URL
- paste the repository URL and click import
- for PXT/arcade
- for PXT/arcade (The metadata above is needed for package search.)
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.