pytchlang / pytch-vm

Pytch: Core language and runtime
Other
3 stars 7 forks source link

Add 'watchers' / 'stage monitors' for variables #2

Open bennorth opened 4 years ago

bennorth commented 4 years ago

Scratch allows you to show the current value of a variable on the stage, in a 'stage monitor'. Can Pytch support something like this? A minimal implementation could just show the value as text somewhere, but an on-stage display would be good. Useful for simple displays of scores, lives left, etc. Because Pytch variables can be any Python type, a bit of thought might be needed on how to show the value of a dictionary or nested list, say.