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

Multiplayer - editable: true #230

Open
SmileImagine opened this issue Feb 18, 2022 · 6 comments
Open

Multiplayer - editable: true #230

SmileImagine opened this issue Feb 18, 2022 · 6 comments

Comments

@SmileImagine
Copy link

SmileImagine commented Feb 18, 2022

For use with my students, I'd love a web-hosted version of Pond where student-coded ducks could compete. I've built a local copy on my personal computer and simply set the 'editable' attribute to 'true' in the 3 bot avatars in ducks.js, and that works pretty well, but it has to be hosted for my students. I haven't been able to get an edit of the file using DevTools to stick – I'm sure there's an obvious reason, but I'm a noob. Would it be possible to offer an option to select a ducksMultiplayer.js file where all four avatars are editable? It would dramatically enhance usability in the classroom.

timarcosdias' forked, hosted version doesn't support ES6, which is essential for me.

Thank you!

@SmileImagine
Copy link
Author

SmileImagine commented Feb 18, 2022

Ah, just figured out how to use DevTools Overrides to edit the ducks without building the whole game. Still, multiplayer would be a gamechanger.

@cpcallen
Copy link
Collaborator

Multiplayer support is very definitely on the roadmap.

@Darkry
Copy link

Darkry commented Mar 11, 2023

@SmileImagine Hi! I am also using this with students and would love multiplayer - but I'm no expert in JS and the libraries used here. Could you give me a quick help with how can I build my own version locally? Just like you, I found the 'editable' attribute and changed it for the bot avatars but then I am not sure how to build it. Thanks!

@SmileImagine
Copy link
Author

SmileImagine commented Mar 12, 2023

@Darkry no need to build it! Just use the Overrides feature of Chrome DevTools or a similar feature in another browser. Open blockly pond, open the inspector, browse through the filesysem to find the ducks.js file, right click and select "save for overrides". This will locally save a copy of the file. Then go to the overrides tab, modify the three ai ducks so that the "editable" attribute is set to "true" for each duck you want to edit, save the file, reload the page, and then you'll be able to edit the code of the three other ducks. Let me know if it works!

@Darkry
Copy link

Darkry commented Mar 16, 2023

@SmileImagine That's amazing, thanks for the tip! It works great!

@romw314
Copy link

romw314 commented Dec 11, 2023

How about adding a Multiplayer checkbox.

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

No branches or pull requests

4 participants