This is a minimal page which follows closely pyscript standard example, running directly demo/min_main.py
It's useful if you plan to integrate turtleps into a page with your own play buttons / logic.
To make this work you only need to include as extra turtleps.js
which acts just as a collection of functions (doesn't initiate any code run on its own).
You don't need to call turtlejs run()
, nor it's mandatory to place a #tps-game-box
div.
Missing features in minimal example
Since this is a minimal example which doesn't use any of turtleps.js
features to ease development, there are: