CodingTrain / CodingTrain/Suggestion-Box
p5: Instance Mode, Multiple js-files and Library Design
- Vorherrschende Sprache
- Keine Sprachdaten
- Sterne
- 570
- Forks
- 85
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Review the linked tutorials on multiple JavaScript files and p5.js Instance Mode first. Define a small multi-file, namespaced p5.js library example that can interact safely with other code; done means the example is documented and demonstrates the requested combination clearly.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript
- Bereich
- documentation
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 20/100