Skip to content

Instantly share code, notes, and snippets.

View UnsignedArduino's full-sized avatar

Cyrus Yiu UnsignedArduino

View GitHub Profile
@UnsignedArduino
UnsignedArduino / on_page_console.js
Last active April 6, 2022 21:01
On page console
// https://gist.github.com/UnsignedArduino/e23b8329c3a786d1e4e99d8ee941436e
// Include this JavaScript file in an HTML file and it will add a DIV element to the bottom of the page which will contain console output and
// an textarea to run JavaScript code!
// Example script include tag: <script src="/on_page_console.js"></script>
// Set false to do nothing
const show_on_page_console = true;
// Code reviewed: https://codereview.stackexchange.com/a/275550/206220
@UnsignedArduino
UnsignedArduino / MakeCode Arcade Extensions.md
Last active March 17, 2022 09:51
Useful MakeCode Arcade Extensions

MakeCode Arcade Extensions

This is a list of MakeCode Arcade extensions that I find super useful in my projects.

NOTE: This gist is depreciated! I've made a new repo for this which you can submit pull requests for extensions you want in! You can find it here.

Built-in extensions

These extensions are already built in to the editor, all you have to do is go to the toolbox, open the Advanced tab, click on Extensions, and click on the extension you want to import!

arcade-sprite-data

It's local variables, but for sprites! Super useful for saving certain attributes of a sprite like the health of an enemy. This will add a section full of blocks called Data under the Sprites category in the toolbox.

Official docs | Github repo | Forum post