This document organizes the p5.party documentation into a suggested learning order. It can be used as a framework for those learning p5.party on their own. It can also be used as a starting point for instructors who want to include p5.party in their courses.

This curriculum—and all of the p5.party docs—assume you know the basics of JavaScript and p5.js already.

The p5.party API includes about 12 functions. The organization below introduces these functions in Levels. Level 1 includes the basic functions need to make a full networked multi-user sketch. Later levels introduce more capabilities p5.party, which you can use to create more advanced projects.

Before starting this curriculum take a look the links below.

Introduction

What do I Need to Know to Get Started?

P5.js Web Editor Quick Start Guide

VS Code Quick Start Guide

Level 1

Shared Objects

API

partyConnect()

partyLoadShared()

partySetShared()

Level 2

Hosting

API

partyIsHost()

Level 3

Guests

API

partyLoadMyShared()

partyLoadGuestShareds()

Level 4

Messaging

API

partySubscribe()

partyUnsubscribe()

partyEmit()

Related Topics

Connecting to the Server

Rooms

Shared Objects

Related Topics

Guests and Host

Avoiding Write Conflicts

Related Topics

“myShared” Objects

Related Topics

Messaging

Exercises

Quiz: sync_letter

Fix bugs: TBA

Recreate: TBA

Exercises

Quiz: host_timer

Fix bugs: TBA

Recreate: TBA

Exercises

Quiz: sign_up

Fix bugs: TBA

Recreate: TBA

Exercises

Quiz: sound_board

Fix bugs: TBA

Recreate: TBA

Assignment

Create a level 1 game.

Assignment

Create a level 2 game.

Assignment

Create a level 3 game.

Assignment

Create a level 4 game.

Official Examples

hello_party

hello_cdn v0.7

set_shared

Official Examples

is_host

click_history

Official Examples

idle_clicker

cursors

Official Examples

hello_watch