VisualizationLiteracyPlayground / visualization-literacy-playkit

A platform that provides educational materials to improve the visualization literacy of children.
https://visualizationliteracyplayground.github.io/visualization-literacy-playkit/
MIT License
0 stars 0 forks source link

Experiment work for MVP of Scratch Extension block #3

Closed tanhengyeow closed 4 years ago

tanhengyeow commented 4 years ago

Fixes #2

Some inspiration for the code is taken from here. To test the code, do the following:

  1. In the repo containing this code, run http-server. Check that http://localhost:8080/vizblocks.js exists.
  2. Go to this page, https://sheeptester.github.io/scratch-gui/
  3. Load the extension: image
  4. The new block should be visible in Scratch

However, it seems like unofficial extensions (what we are working on now) don't have access to the runtime, which is also discussed in this post.

Alternative options:

  1. Find other ways to draw without using the runtime.
  2. Work on a forked copy of Scratch GUI by making our extensions and registering the extensions in the forked codebase. However, we may need to explore ways to embed specific sections of Scratch in our own project as we do not want to redirect the user to a different page hosted on another domain.
tanhengyeow commented 4 years ago

Closing this issue as having access to the runtime is crucial for drawing things in the Renderer section. Work is continued here:

  1. https://github.com/VisualizationLiteracyPlayground/scratch-gui/pull/1
  2. https://github.com/VisualizationLiteracyPlayground/scratch-vm/pull/1