Thank you for your comment.
With the script tags of index.html like below, workspace seems to work (all the blocks are present in toolbox, and drag-and-drop works). But, when I hit "run", nothing happens.
<script src="storage.js"></script>
<script src="msg/js/en.js"></script>
<script src="closure-library/closure/goog/base.js"></script>
<script src="blockly/blocks/p5.js"></script>
<script src="blockly/generators/javascript/p5.js"></script>
<script src="p5js/p5.js"></script>
<script src="p5js/sketch.js"></script>
Console issues error:
variables_dynamic.js:23 Uncaught Error: Language "JavaScript" does not know how to generate code for block type "p5_background".
at Blockly.Generator.blockToCode (variables_dynamic.js:23)
at Blockly.Generator.workspaceToCode (variables_dynamic.js:23)
at runCode (index.html:558)
at HTMLImageElement.onmouseup (index.html:32)
There are other errors like
base.js:2889 Uncaught Error: goog.require could not find: Blockly.JavaScript.p5
at goog.DebugLoader_.load_ (base.js:2889)
at Object.goog.require (base.js:903)
at p5.js:3
and
en.js:5 Uncaught ReferenceError: goog is not defined
at en.js:5
Any advice to fix these?
If resolving these is too hard or too time-consuming, I feel I'd better work on extendig the original blockly.
p5.js and blockly used in the repo seem old.