๐ Code Guides - Complete Catalog
Comprehensive table of contents for all 568 documented p5.js creative coding sketches. Each entry shows the sketch's purpose, key programming concepts from the actual documentation, and links to detailed line-by-line code explanations.
568 fully documented sketches ยท Organized by creation date ยท Real concepts from AI-generated docs
| # | Preview | Sketch Details | Actions |
|---|---|---|---|
| 551 |
|
P5.js sketch inspired by: "Yarn ball"This sketch draws a soft, rounded yarn ball made of dozens of translucent arcs layered and gently rotated to look like wound strands of yarn. A loose thread peels off the ball and wiggles its way toward the mouse cursor, and clicking or tapping cycles through four color palettes.
Key Skills:
|
๐ Read Docs ๐๏ธ View |
| 552 |
|
Sketch 2026-07-07 23:54This sketch builds an animated splash/branding screen for a school (IBMT Zinder), featuring a logo that draws itself with an ease-out animation, a slogan that fades in, and a subtly pulsing call-to-action text. It relies entirely on p5.js's text and shape primitives combined with frame-based animation timers rather than any physics or particles.
Key Skills:
|
๐ Read Docs ๐๏ธ View |
| 553 |
|
Very smart chatbotThis sketch throws out the canvas and instead builds an entire chat application using p5.js DOM functions - a title, description, scrolling message history, text input, and Send button - then powers a rule-based 'Smart Chatbot' that replies using regular expressions, remembered state, and a tiny built-in calculator. Tucked inside draw() is also a fully-coded particle constellation animation that never actually appears, because style.css hides the canvas element entirely.
Key Skills:
|
๐ Read Docs ๐๏ธ View |
| 554 |
|
Crossy rpadThis sketch recreates the classic Crossy Road game: a red square hops between lanes of grass, traffic, and water, riding logs and dodging cars while the camera scrolls upward to follow progress. It tracks a score based on distance traveled and persists a high score across sessions using the browser's local storage.
Key Skills:
|
๐ Read Docs ๐๏ธ View |
| 555 |
|
I lost the index.ejs of my project, will you helpThis sketch simulates a fictional 'city investment' and task-reward game entirely in the browser, using p5.js only to draw a small stats readout while HTML buttons and divs (created with createButton and createDiv) handle all the real interaction. Clicking buttons lets a mock user join cities, complete tasks, and spin a weighted roulette wheel, all while a plain object (mockUser) tracks balance, gems, and daily limits in memory.
Key Skills:
|
๐ Read Docs ๐๏ธ View |
| 556 |
|
space heroThis sketch is a full boss-battle mini-game: an armored archer slides left and right across a glowing sci-fi citadel, firing energy arrows upward at a cybernetic space wolf that patrols the sky and lobs plasma blasts back. A cinematic typewriter cutscene, parallax starfield, particle bursts, floating damage numbers and procedurally synthesized sound effects turn a simple shooting-gallery loop into a mini cinematic experience.
Key Skills:
|
๐ Read Docs ๐๏ธ View |
| 557 |
|
Simple GameThis sketch fills the screen with a grid of white circles that pulse in size like a slow-moving wave, thanks to a sine function tied to frameCount. Keyboard controls let you adjust the grid spacing, animation speed, and pulse size live, with a semi-transparent black background creating soft motion trails.
Key Skills:
|
๐ Read Docs ๐๏ธ View |
| 558 |
|
Very fun game but sonion th onionThis sketch is a complete arcade-style game where you steer a layered onion character named Sonion around the screen to collect ten glowing 'flavor pearls' before a 30-second timer runs out, all while dodging falling rotten vegetables that cost you lives. It uses a finite state machine to switch between start, playing, game-over and win screens, and supports both keyboard (WASD/arrows) and touch/mouse controls.
Key Skills:
|
๐ Read Docs ๐๏ธ View |
| 559 |
|
Bouncing ball animationThis sketch animates a colorful ball that bounces around the full browser window, changing color and playing a percussive noise burst every time it hits an edge. A continuous sine wave drone plays in the background, and arrow keys let the viewer speed up or slow down the ball in any direction.
Key Skills:
|
๐ Read Docs ๐๏ธ View |
| 560 |
|
Sketch 2026-07-10 09:04This sketch builds a full 1v1 (or 1v1v-AI) top-down soccer game using Matter.js for physics and p5.js for rendering. Players and a ball are circular Matter.js bodies that collide realistically, while p5.js draws the field, players, ball, score, timer, and menu screens on top of the physics simulation.
Key Skills:
|
๐ Read Docs ๐๏ธ View |
| 561 |
|
the modifulThis sketch is meant to draw a mesmerizing rainbow spiral that grows outward from the center of the screen, with each dot colored by cycling through the HSB hue wheel and old dots fading into a soft black trail. As written, the file actually contains two corrupted lines (a mangled variable name and stray text after the last function) that will stop it from running at all, which makes it a great real-world exercise in reading error messages and debugging.
Key Skills:
|
๐ Read Docs ๐๏ธ View |
| 562 |
|
Offline game that works offline chicken runThis sketch is a complete offline endless-runner game where a cartoon chicken jumps and ducks to dodge bombs and flying bullets scrolling toward it. Difficulty buttons let the player pick a starting speed, and the game speeds up automatically as the score climbs until a collision ends the run.
Key Skills:
|
๐ Read Docs ๐๏ธ View |
| 563 |
|
open world gameThis sketch is a sprawling GTA-style 3D open-world game built entirely in p5.js WEBGL mode, featuring a walkable/drivable neon Vice-City-inspired map with buildings, palm trees, NPCs you can talk to or shoot, a car you can enter, elevators to rooftops, and a full synthesized sound-effects engine using p5.sound oscillators and envelopes.
Key Skills:
|
๐ Read Docs ๐๏ธ View |
| 564 |
|
Volleyball where the different sections of theThis sketch draws a giant rotating volleyball made of six colored panels, decorated with sparkling glitter particles and seams, that spins on its own and speeds up when you drag it with the mouse. Clicking or auto-spawning intervals shoot little five-pointed stars outward from the center for extra sparkle.
Key Skills:
|
๐ Read Docs ๐๏ธ View |
| 565 |
|
chicken runThis sketch is a Chrome-Dino-style endless runner where a cartoon chicken sprints across a scrolling gray ground, jumping over bombs and ducking under flying bullets. The player picks an Easy or Hard difficulty, and the game speeds up the longer they survive, tracking a score that increases every time an obstacle is dodged. A single collision instantly ends the run and shows a Game Over screen with the final score.
Key Skills:
|
๐ Read Docs ๐๏ธ View |
| 566 |
|
Gun gameThis sketch is a full first-person shooter built with three.js for 3D rendering while p5.js supplies procedural gunshot sounds through p5.sound. You move through an arena with WASD, look around with the mouse via Pointer Lock, and fight off waves of AI enemies that chase and shoot back until either you or all the AIs are defeated.
Key Skills:
|
๐ Read Docs ๐๏ธ View |
| 567 |
|
DRIFT STARS 2026Drift Stars 2026 is a full 3D driving/drifting game built entirely with p5.js's WEBGL renderer. You steer a customizable car through a procedurally-styled city that cycles through time of day and weather, earning drift-combo points while dodging traffic and evading a wanted-level cop chase.
Key Skills:
|
๐ Read Docs ๐๏ธ View |
| 568 |
|
Tornado intercept simulator by corbunThis sketch simulates driving a small armored vehicle across a huge scrolling farmland toward a swirling, animated tornado. You steer with the keyboard or on-screen buttons, then must time the deployment of airbags and ground spikes so the car is fully anchored before it drifts into the tornado's dangerous wind field, scoring 'intercept time' for every second you survive safely close to the storm.
Key Skills:
|
๐ Read Docs ๐๏ธ View |