Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sprites should have a nicer toString method? #619

Open
hallpell opened this issue Jun 17, 2023 · 0 comments
Open

Sprites should have a nicer toString method? #619

hallpell opened this issue Jun 17, 2023 · 0 comments

Comments

@hallpell
Copy link
Collaborator

Currently converting sprites into strings just gives "[object Object]" which is not useful (and therefore is basically a mistake every time it happens). I'm considering making it slightly more informative, probably something like "[TYPE@(x,y)]".

The main reason I think this would be useful is when teaching cloning, you could then display the array storing the clones as text and see them moving about to demonstrate that we're keeping track of all of these.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant