Skip to content

molab-itp/p5moExamples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • multi-device experiences on handheld and large screens

  • creating and updating firebase cloud data

  • p5js examples for p5moLibrary

How is data synchronized in real time in the examples?

Data, such as shared photos, vote counts, and drawing points, is synchronized through Firebase, which serves as a backend/server and has built-in sockets.

The functions that include Firebase setup are in p5moLibrary.

p5js versions of examples

github.io of p5mirror-jht9629-nyu

Add your example

  • fork this repo
  • create a branch with your example
  • submit a pull request to this repo

Notes


Copied into to sketches.

> Add Upload File
> select all files in examples/* folder
> edit index.html to remove ?v=xx

Plan

  • [] Document VS Code debugging steps

  • [] Document vote example

  • [] Document lobby example

  • [] Document manual version ?v=x to bust the browser cache for github pages deploy

Done


- [x] Consider sharing build.sh to version this code

- [x] lobby delete room function
  - defer: use firebase console

- [x] collab draw example

- [x] Add basic vote sample


Archived


// https://editor.p5js.org/jht9629-nyu/sketches/7Wjlo3pPU
// mo-pixel-grid jht9629 fireb_firebase.js

// https://editor.p5js.org/jht9629-nyu/sketches/twgS6eWRZ
// pixel-grid


CRUD

alias crud=./p5mirrorLib/bin/crud.sh

crud list

crud export_new --folder "examples" --all

crud export_update --folder "examples/videoKit" --sketch u_Blv5bOK --verbose

crud delete --all --remote

crud watermark --all --remote

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •