Closed SheepTester closed 5 years ago
User input should be fine, actually
how GUI gets questions: https://github.com/LLK/scratch-gui/blob/develop/src/containers/stage.jsx#L79
how GUI sends answers: https://github.com/LLK/scratch-gui/blob/develop/src/containers/stage.jsx#L110
how runtime gets answers: https://github.com/LLK/scratch-vm/blob/develop/src/blocks/scratch3_sensing.js#L43
how runtime sends questions: https://github.com/LLK/scratch-vm/blob/develop/src/blocks/scratch3_sensing.js#L125-L130
fetch('https://sheeptester.github.io/SHEPS.svg').then(r => r.blob()).then(blob => new Promise(res => {
const a = new FileReader();
a.onload = function(e) {res(e.target.result);}
a.readAsDataURL(blob);
})).then(console.log)
to make data URIs
online minifier https://skalman.github.io/UglifyJS-online/
Use
getXY
https://github.com/LLK/scratch-gui/blob/develop/src/lib/touch-utils.js