Intro to JavaScript with p5.js: Interactive Art & Games

Intro to JavaScript with p5.js: Interactive Art & Games

Intro to JavaScript with p5.js: Interactive Art & Games

Ages 8–13 · Beginner · Live online group, up to 20 kids · $22.20 per class

Next class: Wed, Dec 2 · 8:00 AM US Eastern. Full refund if the first class isn't the right fit.

A three-week beginner course using the p5.js library to introduce text-based JavaScript programming through hands-on projects. Students write real code to draw and animate shapes, handle mouse and keyboard input, detect collisions, and implement scoring and simple game flow.

Class Experience

This three-week course gives young coders a first taste of real, text-based programming with JavaScript and the p5.js library. In the first session, learners write code to draw shapes, track the mouse, and use distance detection and scoring variables to build an interactive shape-catching art game.

Next, students start a side-scrolling game by preloading images, animating a scrolling background, and simulating gravity and jumping. In the final session they add obstacles, collision detection, scoring, and game-over logic to finish a complete game they can keep playing and changing at home.

How classes work

Classes meet once a week for 55 minutes over three weeks, with each session building a project step by step. The teacher explains a concept, learners type the code themselves and test it right away, and there is time to customize and debug together.

What we'll cover

  • Class 1: Interactive Art Game – Intro to JavaScript and p5.js by building a shape-catching art game using mouse tracking, distance detection, and scoring variables.

  • Class 2: Side-Scroller Mechanics I – Begin a side-scrolling project by preloading images, animating a scrolling background, and simulating gravity and jumping.

  • Class 3: Side-Scroller Mechanics II – Add obstacles, collision detection, scoring, and game-over logic to complete the side-scrolling game.

Learning Outcomes

  • Bullet point

    Write and run basic JavaScript code using the p5.js library

  • Bullet point

    Use variables, functions, and events in programs

  • Bullet point

    Create interactive visuals that respond to mouse input and simulate movement

  • Bullet point

    Use distance detection and scoring variables to build a shape-catching game

  • Bullet point

    Preload images and animate a scrolling background with gravity and jumping

  • Bullet point

    Add obstacles, collision detection and game-over logic to complete a side-scrolling game

Prerequisites

No coding experience needed, but learners should be comfortable typing and using a mouse. Have a Windows or Mac computer ready with a microphone and speakers and a modern web browser.

What You'll Need

Supplies
NotebookPencilComputer mouse
Software
P5_JSZOOM
Device and internet
Windows Computer / Mac ComputerMicrophoneSpeakers

Learners jot down code ideas and sketch game layouts in a notebook, and a mouse helps them test the mouse-controlled games.

Syllabus

3 Lessons

A step-by-step plan of what your child learns, class by class. · 3 Weeks

Interactive Art Game

Intro to JavaScript and p5.js by building a shape-catching art game using mouse tracking, distance detection, and scoring variables.

Side-Scroller Mechanics I

Begin a side-scrolling project by preloading images, animating a scrolling background, and simulating gravity and jumping.

Side-Scroller Mechanics II

Add obstacles, collision detection, scoring, and game-over logic to complete the side-scrolling game.

Available Times

Next 7 days, US Eastern Time

  • Wed, Dec 2 · 8:00 AM
  • Wed, Dec 2 · 10:00 AM
  • Wed, Dec 2 · 11:00 AM
  • Wed, Dec 2 · 12:00 PM
  • Wed, Dec 2 · 5:00 PM
  • Thu, Dec 3 · 12:00 PM
  • Fri, Dec 4 · 11:00 AM
  • Fri, Dec 4 · 1:00 PM
  • Sat, Dec 5 · 10:00 AM
  • Sun, Dec 6 · 4:00 PM
  • Mon, Dec 7 · 11:00 AM
  • Mon, Dec 7 · 1:00 PM
  • Mon, Dec 7 · 7:00 PM

Parents Often Ask

Yes. No coding experience is needed, but your child should be comfortable typing and using a mouse. The course introduces real, text-based programming using the p5.js library in a beginner-friendly, project-based way.

A Windows or Mac computer with a microphone, speakers and a modern web browser. A computer mouse is helpful for testing the mouse-controlled games.

In the first session, your child builds an interactive shape-catching art game. In the next two, they create a side-scrolling game with a scrolling background, gravity and jumping, then add obstacles, collision detection, scoring and game-over logic.

Yes. The final session finishes a complete side-scrolling game with obstacles, scoring and game-over logic that students can keep playing and changing at home after the course ends.

The course has three weekly sessions of 55 minutes each: Interactive Art Game, Side-Scroller Mechanics I and Side-Scroller Mechanics II, each building on the code from before.

Your child will write and run JavaScript with p5.js, using variables, functions and events, and create interactive visuals that respond to the mouse and simulate movement.

No homework is assigned and there is no certificate. Your child writes all the code during the three live sessions, though they're welcome to keep tinkering with their game at home.

Cancel before the second class starts for a full refund. After that, started classes count as used and the remaining ones are refunded to store credit or your original payment method. Cancel from the class in the parent dashboard.

Meet your Instructor

Joined August, 2026

6+

Years

An experienced, multi-disciplinary team of educators and developers focused on early tech literacy, Coco Coders combines classroom teaching experience with real-world programming skills. Instructors bring backgrounds in computer science, education, psychology, and technical training and design project-based lessons using JavaScript (p5.js) and Python to create interactive art, games, and beginner-friendly projects. Classes emphasize creativity, problem solving, and coding fundamentals while providing individualized support so students build both technical skills and confidence as young coders.

Web Design for Beginners: Build 6 Websites with HTML, CSS & JavaScript

Beginner

Level

10–13

Ages

55 min

Duration

1 / Week

Classes

16

Weeks

$21.50per class
See schedule

🎬 Build a Real GIF Web App

Beginner

Level

12–18

Ages

55 min

Duration

2 / Week

Classes

12

Weeks

$21.00per class
See schedule

Build a Clicker Web Game with HTML, CSS, and JavaScript

Beginner

Level

10–15

Ages

75 min

Duration

1 / Week

Classes

5

Weeks

$22.00per class
See schedule

Creative JavaScript World-Building with p5.js

Beginner

Level

9–14

Ages

55 min

Duration

4 / Week

Classes

1

Weeks

$19.00per class
See schedule

AI-Assisted Game Development with Cursor: Python, Pygame & Three.js

Beginner

Level

13–17

Ages

60 min

Duration

1 / Week

Classes

10

Weeks

$23.00per class
See schedule

Intro to Web Development: HTML, CSS & JavaScript

Beginner

Level

10–13

Ages

55 min

Duration

4 / Week

Classes

2

Weeks

$21.50per class
See schedule

React Bootcamp: Components, State, APIs and Deployment

Beginner

Level

13–18

Ages

35 min

Duration

1 / Week

Classes

50

Weeks

$19.00per class
See schedule

Web Game Development with HTML, CSS & JavaScript

Beginner

Level

13–16

Ages

55 min

Duration

1 / Week

Classes

8

Weeks

$20.00per class
See schedule