CodingTrain / CodingTrain/Suggestion-Box

p5: Instance Mode, Multiple js-files and Library Design

オープン
#541 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
言語のデータがありません
スター
570
フォーク
85
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

まず、複数の JavaScript ファイルと p5.js Instance Mode に関するリンク先のチュートリアルを確認してください。他のコードと安全にやり取りできる、小規模で namespace 化された p5.js ライブラリの例を定義します。例がドキュメント化され、要求された組み合わせを明確に示していれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
documentation
issue の種類
ドキュメント
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
20/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。