CodingTrain / CodingTrain/Suggestion-Box
p5: Instance Mode, Multiple js-files and Library Design
- Dominant language
- No language data
- Stars
- 570
- Forks
- 85
- PR merge metrics
- No merged PRs in 30d
Description
Hello everybody,
Small is beautiful and I like examples that take only one screen to show. But now that my projects grow bigger, I want to split code into different files. One 'class' per file. Daniel Shiffman explains how in this video: [Multiple js Files - p5.js Tutorial.](https://www.youtube.com/watch?v=Yk18ZKvXBj4) Excellent
Also I am interested in 'namespacing' my p5-projects, because I am in the habit of giving all my Box-objects the name 'boxy', which is kind of silly, though it could be worse. I found one tutorial on [Instance Mode (aka "namespacing") - p5.js Tutorial.](https://www.youtube.com/watch?v=Su792jEauZg)
Now I want to combine these 2 approaches and have my one-per-file objects interact with p5 in Instance Mode.
Ultimately I would like to be confident enough to write my own p5-Library. A tiny example of how to set up a multi-file, namespaced p5-library that behaves well with other code would be of great help. I've got things to share!
Thanks to Daniel Shiffman for the very interesting tutorials, that I watch with a smile and with respect.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.