πŸ“– Code Guides - Complete Catalog

Comprehensive table of contents for all 927 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.

927 fully documented sketches Β· Organized by creation date Β· Real concepts from AI-generated docs

# Preview Sketch Details Actions
651 The best snake game modded - p5.js creative coding sketch

The best snake game modded

This sketch is a complete Snake game remix with a menu system, an unlockable outfit shop, a shooting mechanic, chasing zombies, and a live DOM-based admin panel for tweaking the game in real time. The snake moves on a grid, eats fruit to grow and score points, can fire projectiles to snipe food or zombies from a distance, and loses a life when it hits a wall, its own tail, or a zombie.

Key Skills:
  • Finite state machine
  • ES6 classes and OOP
  • p5.Vector math for AI chasing
  • Linear interpolation (lerp) for smooth animation
  • p5.js DOM elements (sliders/buttons/inputs)

by Anonymous Β· 579 views

πŸ“– Read Docs πŸ‘οΈ View
652 the spider man - p5.js creative coding sketch

the spider man

This sketch creates an interactive Spider-Man swinging game where the player guides Spider-Man through a scrolling city by shooting webs between buildings. The character swings on physics-based web dynamics, collecting points as buildings scroll past, with the game ending if Spider-Man falls off the bottom of the screen.

Key Skills:
  • Game loop and frame updates
  • Physics simulation with velocity and acceleration
  • Pendulum motion and spring forces
  • Procedural generation and object pooling
  • Collision detection and spatial queries

by Anonymous Β· 308 views

πŸ“– Read Docs πŸ‘οΈ View
653 diary of a wimpy kid123 - p5.js creative coding sketch

diary of a wimpy kid123

This is a side-scrolling parkour game themed around Diary of a Wimpy Kid where players jump over obstacles while being chased by Rodrick and Fregley. The game features double-jumping, collectible cheese items, increasing difficulty, and a notebook-style visual presentation.

Key Skills:
  • Game state management
  • Collision detection
  • Velocity and gravity physics
  • Dynamic obstacle spawning
  • Multiple animated objects

by Anonymous Β· 291 views

πŸ“– Read Docs πŸ‘οΈ View
654 the wimpy game - p5.js creative coding sketch

the wimpy game

This sketch creates a dodge-and-collect game where players control a wimpy stick figure kid navigating a school hallway. The player must avoid falling bullies while collecting homework pages to increase their score, losing lives when hit by bullies and ending the game when all three lives are lost.

Key Skills:
  • Game state management
  • Collision detection (AABB)
  • Object spawning and pooling
  • Input handling
  • Difficulty progression

by Anonymous Β· 298 views

πŸ“– Read Docs πŸ‘οΈ View
655 Sketch 2026-03-01 22:19 - p5.js creative coding sketch

Sketch 2026-03-01 22:19

This is a classic arcade-style space shooter where the player controls a ship at the bottom of the screen to destroy enemies falling from above. The game features progressive difficulty, collision detection, a lives system, and score tracking, with the game ending when all lives are lost.

Key Skills:
  • Game state machine
  • Collision detection (AABB)
  • Array iteration and removal
  • Object properties
  • Progressive difficulty

by Anonymous Β· 270 views

πŸ“– Read Docs πŸ‘οΈ View
656 Sketch 2026-03-01 22:19 - p5.js creative coding sketch

Sketch 2026-03-01 22:19

This sketch creates a dodge-and-survive game where the player controls a red rectangle using arrow keys or WASD to avoid falling blue objects. The score increases with each dodged object, the game difficulty escalates with faster falling speeds and more frequent spawns, and the game ends on collision.

Key Skills:
  • Game state machine
  • Collision detection (AABB)
  • Array management
  • Keyboard input
  • Progressive difficulty

by Anonymous Β· 269 views

πŸ“– Read Docs πŸ‘οΈ View
657 stimulation final boss - p5.js creative coding sketch

stimulation final boss

This sketch creates a dynamic, multi-layered interactive canvas where a swirling cloud of particles follows your mouse while being repelled by a bouncing white ball. Four spinning pinwheels anchor the corners, you can draw permanent white lines by clicking and dragging, and a clickable button in the center tracks interactions.

Key Skills:
  • Particle systems
  • Vector forces and attraction
  • Collision detection and repulsion
  • Graphics layers and persistent drawing
  • Animation loops and frame-based physics

by Anonymous Β· 333 views

πŸ“– Read Docs πŸ‘οΈ View
658 run run run - p5.js creative coding sketch

run run run

This sketch creates an adaptive platformer where an AI learns your fastest route and spawns hazards directly in your path. The visuals pulse between cool blues and hot reds based on how closely you follow the AI's predicted trajectory, creating a feedback loop where speed and visual intensity reinforce each other.

Key Skills:
  • Physics simulation and velocity
  • Collision detection (AABB and circle-rectangle)
  • Procedural difficulty scaling
  • Machine learning pattern recognition
  • Color interpolation and visual feedback

by Anonymous Β· 293 views

πŸ“– Read Docs πŸ‘οΈ View
659 Snail game - p5.js creative coding sketch

Snail game

This sketch is a full arcade game where a snail glides around eating red food, dodging grey obstacles, and collecting speed-boosting candy and a screen-clearing pickaxe. It wraps the game in a complete menu system - start screen, map select, instructions, avatar shop, and an admin cheat panel - with progress saved to the browser's localStorage.

Key Skills:
  • Game state machine (switch on a string variable)
  • ES6 classes and inheritance
  • Circle-rectangle collision detection
  • Vector-based mouse steering (p5.Vector)
  • localStorage persistence

by Anonymous Β· 2769 views

πŸ“– Read Docs πŸ‘οΈ View
660 fading colors - p5.js creative coding sketch

fading colors

This sketch creates an interactive visual trail effect where moving your mouse leaves behind a series of fading, shrinking circles that gradually disappear. Each circle represents a 'clone' of your mouse position frozen in time, creating a ghostly echo effect that reveals your recent movement path across the dark canvas.

Key Skills:
  • Arrays and object storage
  • Time-based animation with millis()
  • The lerp() function for smooth transitions
  • Alpha transparency and color animation
  • Object lifecycle management

by Anonymous Β· 288 views

πŸ“– Read Docs πŸ‘οΈ View
661 The best snake game (Remix) - p5.js creative coding sketch

The best snake game (Remix)

This sketch builds a complete Snake game with a canvas-drawn menu system, an unlockable outfit/skin system tied to your score, a lives mechanic that gives you a second chance before Game Over, and a hidden DOM-based admin panel for live debugging. A finite state machine switches between the Menu, Outfits, Gameplay, and Game Over screens, all rendered on a single p5.js canvas.

Key Skills:
  • Finite state machine for screen management
  • Grid-based movement with an array tail
  • Collision detection (walls and self)
  • Score-driven unlock system with localStorage persistence
  • Canvas-drawn UI with manual rectangle hit-testing

by Anonymous Β· 1476 views

πŸ“– Read Docs πŸ‘οΈ View
662 The best snake game - p5.js creative coding sketch

The best snake game

This sketch builds a complete Snake game inside a single p5.js canvas, including a clickable main menu, a paginated outfit-selection screen with unlockable skins, core snake gameplay, and a game-over screen. It also wires up an HTML/CSS admin panel that lets you tweak speed, score, lives, and snake length live while the game runs.

Key Skills:
  • Finite state machines
  • ES6 classes
  • localStorage persistence
  • Grid-based movement with vectors
  • Manual UI hit-testing

by Anonymous Β· 7831 views

πŸ“– Read Docs πŸ‘οΈ View
663 Sketch 2026-03-01 14:38 - p5.js creative coding sketch

Sketch 2026-03-01 14:38

This sketch builds a full 'Snake Game Deluxe' with a start menu, character-skin selection, classic grid-based snake movement, and a persistent unlock system stored in the browser's localStorage. Players steer a snake with arrow keys to eat food and raise their score, while reaching score milestones unlocks new colored snake skins that persist between visits.

Key Skills:
  • Game state machines (switch/case)
  • Grid-based movement with p5.Vector
  • Interpolated animation with lerp()
  • DOM manipulation (createDiv, createButton)
  • localStorage persistence

by Anonymous Β· 2018 views

πŸ“– Read Docs πŸ‘οΈ View
664 Numbers shuffle - p5.js creative coding sketch

Numbers shuffle

This sketch is a classic sliding number puzzle (like the 15-puzzle) rendered entirely with p5.js shapes and text. Numbered tiles sit in a grid with one empty slot, and you click a tile next to the empty space to slide it into place, trying to restore the numbers to sequential order.

Key Skills:
  • 2D arrays
  • Mouse-to-grid coordinate mapping
  • push()/pop()/translate() transforms
  • DOM integration (createButton)
  • Win condition checking

by Anonymous Β· 391 views

πŸ“– Read Docs πŸ‘οΈ View
665 Aquarium Attempt - xelsed.ai (Remix) - p5.js creative coding sketch

Aquarium Attempt - xelsed.ai (Remix)

This interactive aquarium simulation lets players purchase and manage 12 different sea creature types using coins earned when creatures eat each other. The sketch features dynamic predator-prey relationships, depth-based rendering, animated ocean backgrounds, and a summoned Manta Ray boss that can absorb nearby fish.

Key Skills:
  • Object-oriented design (ES6 classes)
  • Array management and splice()
  • Predator-prey mechanics
  • Depth-based rendering and layering
  • State machines (Octopus hopping, Manta Ray gulping)

by Anonymous Β· 335 views

πŸ“– Read Docs πŸ‘οΈ View
666 Shape dance - p5.js creative coding sketch

Shape dance

This sketch creates an interactive audio visualization where three types of shapes dance and react to different frequencies of sound from your microphone. A pulsating ellipse responds to bass, rotating rectangles follow mid-range energy, and a waveform spectrum analyzer at the bottom visualizes the full frequency spectrum.

Key Skills:
  • Audio input and microphone access
  • FFT (Fast Fourier Transform) frequency analysis
  • Energy band extraction (bass, mid, treble)
  • Real-time data mapping with map()
  • Coordinate transformations (translate, rotate, push/pop)

by Anonymous Β· 242 views

πŸ“– Read Docs πŸ‘οΈ View
667 Police - p5.js creative coding sketch

Police

This sketch is a full arcade game where emoji fall from the sky and must be caught in a basket. Catching good food emojis spawns a customer, while catching bad emojis triggers escalating chain reactions - arrests, police cars, helicopter crashes, fire trucks, and tow trucks - each driven by its own state machine.

Key Skills:
  • State machines with switch statements
  • Managing multiple entities with arrays of objects
  • AABB collision detection
  • Emoji rendering with text()
  • push()/pop()/translate()/rotate() for compound shapes

by Anonymous Β· 1730 views

πŸ“– Read Docs πŸ‘οΈ View
668 IT SEES. - p5.js creative coding sketch

IT SEES.

This sketch creates an immersive first-person 3D maze where the player navigates using WASD and mouse look while being hunted by a terrifying, twitching creature with glowing red eyes. A flickering flashlight illuminates the foggy maze as walls fade to black with distance, and a survival timer tracks how long you evade the relentless stalker before being caught.

Key Skills:
  • WEBGL 3D rendering
  • First-person camera control
  • Collision detection on grid
  • Fog and distance-based effects
  • AI pathfinding and pursuit

by Anonymous Β· 292 views

πŸ“– Read Docs πŸ‘οΈ View
669 Food - p5.js creative coding sketch

Food

This sketch is an interactive emoji-catching game where players move a basket to catch falling food emojis while avoiding disasters and hazards. When bad emojis are caught, police officers, cars, helicopters, fire trucks, and tow trucks arrive to respond to the chaos in an escalating comedy of emergency vehicles.

Key Skills:
  • State machines and finite states
  • Collision detection (AABB bounding boxes)
  • Object arrays and management
  • Animation and frame-based timing
  • Responsive canvas and window resizing

by Anonymous Β· 316 views

πŸ“– Read Docs πŸ‘οΈ View
670 Foooooooood - p5.js creative coding sketch

Foooooooood

This is a restaurant cooking game where players manage food orders by clicking menu items to cook them in microwaves and fridges, then transferring them to chopping boards to serve. The game tracks score, failed orders, and customer satisfaction through emoji reactions and animated arrivals/departures.

Key Skills:
  • Game state machines
  • Array-based inventory systems
  • Click/tap detection and hit testing
  • Animation with millis() and lerp()
  • Responsive canvas layout

by Anonymous Β· 247 views

πŸ“– Read Docs πŸ‘οΈ View
671 block stacker-2.0 - p5.js creative coding sketch

block stacker-2.0

This sketch creates an isometric 3D block-stacking game powered by Matter.js physics. Colorful blocks slide horizontally across the screen, and you click to drop them onto a growing tower, trying to stack as high as possible before the structure becomes unstable and tumbles.

Key Skills:
  • Matter.js physics engine
  • Isometric projection and 3D drawing
  • Collision detection and hit testing
  • Camera movement and viewport control
  • Game state management

by Anonymous Β· 289 views

πŸ“– Read Docs πŸ‘οΈ View
672 Yey - p5.js creative coding sketch

Yey

This sketch creates a mesmerizing 3D audio visualizer where a central rotating torus and 16 surrounding boxes react dynamically to microphone input. The shapes pulse, rotate, and change color in real-time based on different frequency bands of the audio spectrum, creating a dance-like visual representation of sound.

Key Skills:
  • WebGL 3D graphics
  • FFT audio analysis
  • Real-time frequency bands
  • HSB color mode
  • 3D transformations (translate, rotate)

by Anonymous Β· 235 views

πŸ“– Read Docs πŸ‘οΈ View
673 sigmaskibidi - p5.js creative coding sketch

sigmaskibidi

This is a minimal p5.js template that creates a canvas filling the entire browser window and maintains that full-screen size whenever the window is resized. It serves as a clean starting point for any p5.js creative coding project.

Key Skills:
  • Canvas initialization
  • Responsive design
  • Draw loop
  • Window events
  • Setup and initialization

by Anonymous Β· 266 views

πŸ“– Read Docs πŸ‘οΈ View
674 πŸ™‚ - p5.js creative coding sketch

πŸ™‚

This sketch creates an immersive 3D bedroom scene in p5.js WEBGL mode where players hold their mouse or touch to activate a flashlight spotlight that illuminates the dark room. Random jump scares trigger with white flashes, sound effects, and haptic vibration feedback, creating a horror game experience inspired by Five Nights at Freddy's.

Key Skills:
  • 3D WEBGL rendering
  • spotLight() directional lighting
  • ambientMaterial() and ambientLight()
  • Mouse and touch interaction
  • Audio playback and p5.sound

by Anonymous Β· 278 views

πŸ“– Read Docs πŸ‘οΈ View
675 Door (Remix) - p5.js creative coding sketch

Door (Remix)

This is a multi-level survival game where players navigate through 12 increasingly challenging scenariosβ€”from clicking a door handle to avoiding zombies, laser grids, and falling airplane debris. Each level teaches different p5.js techniques like collision detection, mouse/keyboard input, state management, and real-time animation.

Key Skills:
  • Game state management
  • Collision detection (rectangle-circle and rectangle-rectangle)
  • Classes and object-oriented design
  • Animation with deltaTime
  • Mouse and keyboard input handling

by Anonymous Β· 313 views

πŸ“– Read Docs πŸ‘οΈ View
676 DIE - p5.js creative coding sketch

DIE

This is a Flappy Bird-style game where a fish navigates through moving seaweed obstacles while jumping and shooting missiles. The player controls the fish with the spacebar or mouse clicks to jump, presses 'x' to shoot missiles at obstacles, and tries to pass through as many obstacles as possible without hitting them or the screen edges. The game tracks score and ends on collision.

Key Skills:
  • Game state machines
  • Object-oriented design
  • Collision detection (bounding boxes)
  • Physics simulation (gravity and velocity)
  • Dynamic object spawning

by Anonymous Β· 317 views

πŸ“– Read Docs πŸ‘οΈ View
677 FLYING FISH - p5.js creative coding sketch

FLYING FISH

Flying Fish is a Flappy Bird-style game where the player controls an orange fish navigating through vertical gaps between green seaweed obstacles. The fish falls due to gravity and jumps when clicked or pressing spacebar, with the goal of passing through as many obstacles as possible without collision.

Key Skills:
  • Game state management
  • Gravity and physics
  • Collision detection (AABB)
  • Object-oriented design
  • Event handling (mouse and keyboard)

by Anonymous Β· 277 views

πŸ“– Read Docs πŸ‘οΈ View
678 five night at diddys - p5.js creative coding sketch

five night at diddys

This sketch recreates a simplified version of Five Nights at Freddy's in 3D using three.js for 3D rendering and p5.js for UI overlays. Players manage power, close doors, turn on lights, and survive animatronic attacks by monitoring security cameras and controlling office defenses for six in-game minutes.

Key Skills:
  • Game state management
  • Finite state machines for AI
  • Three.js 3D scene setup and rendering
  • p5.js UI overlay system
  • Delta time-based animation

by Anonymous Β· 288 views

πŸ“– Read Docs πŸ‘οΈ View
679 block stacker - p5.js creative coding sketch

block stacker

This sketch is a timing-based stacking game where players click to place glowing isometric cubes onto a rising tower. A golden block glides back and forth across the top, and players must click precisely when it's aligned with the block belowβ€”miss by too much and the tower collapses, ending the game.

Key Skills:
  • Game loop and state management
  • Isometric 3D drawing with 2D primitives
  • Collision detection and accuracy calculation
  • Camera following and smooth lerp animation
  • Dynamic difficulty scaling

by Anonymous Β· 291 views

πŸ“– Read Docs πŸ‘οΈ View
680 gta6 current state updated - p5.js creative coding sketch

gta6 current state updated

This sketch creates an immersive 3D GTA-style game where you drive a car through an endless procedurally generated city, then step out on foot to shoot enemies while evading increasingly aggressive police vehicles. As your wanted level rises from 0 to 5 stars, cop cars, SWAT trucks, Humvees, and finally tanks spawn and hunt you down.

Key Skills:
  • Three.js 3D rendering
  • Procedural chunk-based world generation
  • AI pathfinding and chasing
  • Collision detection and physics
  • Raycasting for shooting and hit detection

by Anonymous Β· 302 views

πŸ“– Read Docs πŸ‘οΈ View
681 poop game - p5.js creative coding sketch

poop game

This sketch draws a colorful stick figure man that fills the canvas using direct pixel manipulation. The figure scales dynamically to fit the window and demonstrates how to control individual pixels rather than using p5.js shape functions.

Key Skills:
  • Pixel array manipulation
  • Direct pixel rendering
  • Color objects and RGB channels
  • Collision detection with rectangles
  • Responsive canvas scaling

by Anonymous Β· 277 views

πŸ“– Read Docs πŸ‘οΈ View
682 dummy - p5.js creative coding sketch

dummy

This sketch creates an interactive stick man character in a retro school classroom setting who spreads hilariously false information through a chat interface. Players move the stick man around with WASD keys, press F to make him smile, and ask him questions to receive intentionally bad "facts" paired with awkward rhymes.

Key Skills:
  • Canvas and DOM integration
  • Keyboard input and event handling
  • Transform matrices (translate, push/pop)
  • 2D vector-based drawing (lines, ellipses, arcs)
  • Conditional rendering and state management

by Anonymous Β· 237 views

πŸ“– Read Docs πŸ‘οΈ View
683 Try to get the highest score! - p5.js creative coding sketch

Try to get the highest score!

This sketch is a 20-second arcade game where you swing a glowing sword across two eerie, eye-tracking space monsters to score points before time runs out. It layers a slowly animated Perlin-noise nebula and twinkling starfield behind the action, and uses custom line-circle collision math to detect sword slashes.

Key Skills:
  • Game state management (start/playing/game over)
  • Custom line-circle collision detection
  • drawingContext shadowBlur for glow effects
  • Perlin noise for animated organic shapes
  • atan2() for pupil/eye tracking

by Anonymous Β· 496 views

πŸ“– Read Docs πŸ‘οΈ View
684 Sketch 2026-02-24 21:42 - p5.js creative coding sketch

Sketch 2026-02-24 21:42

This is not a p5.js creative coding sketch. The provided files contain an HTML business website for Common Courtesy Delivery and Logistics LLC with CSS styling, but no p5.js code, canvas graphics, or interactive visualizations.

Key Skills:
  • Arrays & loops
  • Trigonometry

by Anonymous Β· 260 views

πŸ“– Read Docs πŸ‘οΈ View
685 Sketch 2026-02-24 20:50 - p5.js creative coding sketch

Sketch 2026-02-24 20:50

This sketch creates an interactive drawing canvas where users paint with a brush that continuously cycles through rainbow colors. Mouse movements create smooth, fluid strokes using interpolation, with keyboard shortcuts for clearing, resizing, and saving artwork.

Key Skills:
  • Color cycling
  • HSB color mode
  • Mouse events (mouseDragged)
  • Smooth interpolation (lerp)
  • Distance calculation

by Anonymous Β· 313 views

πŸ“– Read Docs πŸ‘οΈ View
686 uktu - p5.js creative coding sketch

uktu

This sketch creates an interactive game where a blue square player is controlled with arrow keys to move around a canvas that fills the entire window. The player stays within the canvas boundaries and the canvas automatically resizes when the window changes size.

Key Skills:
  • Keyboard input detection
  • Boundary constraint checking
  • Responsive canvas resizing
  • Variable-based positioning
  • Conditional logic

by Anonymous Β· 262 views

πŸ“– Read Docs πŸ‘οΈ View
687 Sketch poop - p5.js creative coding sketch

Sketch poop

This interactive restaurant simulator lets you shoot food emojis at hungry customers sitting at tables. Customers eat, pay, and leave in sequence, while occasionally someone falls and needs an ambulanceβ€”click their phone emoji to call for help. The sketch combines emoji-based animation, collision detection, and state management to create a playful chaos simulator.

Key Skills:
  • Collision detection (AABB rectangle-rectangle)
  • State machines and object properties
  • Array management and filtering
  • Vector math and direction calculation
  • Responsive canvas layout

by Anonymous Β· 306 views

πŸ“– Read Docs πŸ‘οΈ View
688 roblox trash - p5.js creative coding sketch

roblox trash

This sketch creates a playful 3D Roblox-style scene using WebGL. It features a blocky character with waving arms standing on a ground plane, surrounded by trees, clouds, and colorful buildings, all rendered in a low-poly aesthetic with interactive camera controls.

Key Skills:
  • WebGL 3D rendering
  • 3D transforms (translate, rotate, scale)
  • 3D primitives (box, cylinder, sphere)
  • Lighting and materials
  • Camera controls with orbitControl()

by Anonymous Β· 289 views

πŸ“– Read Docs πŸ‘οΈ View
689 Airplane - p5.js creative coding sketch

Airplane

This sketch creates an interactive airplane game where a plane continuously flies across the screen dropping supply crates with parachutes. Players click or tap the falling crates to collect them and increase their food counter, while particle effects trail behind the airplane.

Key Skills:
  • Object-oriented programming with classes
  • Particle systems and trails
  • Collision detection
  • Game loops and state management
  • Sound synthesis with oscillators

by Anonymous Β· 422 views

πŸ“– Read Docs πŸ‘οΈ View
690 A tale of space and science - p5.js creative coding sketch

A tale of space and science

This sketch creates an animated cinematic narrative featuring stick figures exploring a cosmic story. Smooth gradient backgrounds, floating particles, and organic blob shapes evolve through nine scenes, with stick figures in different poses holding symbolic pixel-art items while text narrates their space exploration journey.

Key Skills:
  • Scene management and state arrays
  • Gradient backgrounds and layered fills
  • Perlin noise for organic animation
  • Alpha transparency and fade effects
  • Pose-based character animation

by Anonymous Β· 287 views

πŸ“– Read Docs πŸ‘οΈ View
691 Sketch 2026-02-23 03:27 - p5.js creative coding sketch

Sketch 2026-02-23 03:27

This sketch simulates a supply drop coordination game where you shoot a flare, triggering an airplane to fly across the screen and release supply packages. Multiple vehicles then race to collect the supplies on the ground, creating a dynamic chain reaction of events across the canvas.

Key Skills:
  • Array management
  • Object state tracking
  • Responsive canvas design
  • Animation loops
  • Collision detection (distance-based)

by Anonymous Β· 255 views

πŸ“– Read Docs πŸ‘οΈ View
692 First to come - p5.js creative coding sketch

First to come

This sketch creates an animated steam effect using thousands of particles that flow and swirl across the canvas, guided by Perlin noise. The particles react to mouse and touch input, parting away from your cursor like wisps of smoke around the glowing "P5JS.AI" logo.

Key Skills:
  • Perlin noise
  • Particle systems
  • Flow fields
  • HSB color mode
  • Velocity and acceleration

by Anonymous Β· 296 views

πŸ“– Read Docs πŸ‘οΈ View
693 CitySkyline - p5.js creative coding sketch

CitySkyline

This sketch creates a mesmerizing day-night cycle of a city skyline that continuously transforms over 60 seconds. Stars twinkle at night, clouds drift across the sky, birds fly at dawn, shooting stars streak overhead, and glowing lanterns rise from rooftops at duskβ€”all set against a smoothly gradient-shifting sky that transitions from deep night through sunrise, midday blue, sunset, and back again.

Key Skills:
  • Time-based state management
  • Color interpolation and gradients
  • Conditional rendering based on time ranges
  • Object-oriented design with classes
  • Graphics buffer optimization

by Anonymous Β· 301 views

πŸ“– Read Docs πŸ‘οΈ View
694 hit the blocks - p5.js creative coding sketch

hit the blocks

This is a classic arcade-style shooter game where players control a rotating blue square, aim with the mouse, and fire projectiles to destroy red enemy squares spawning from the screen edges. The game ends when an enemy reaches the player, with score tracking and sound effects included.

Key Skills:
  • Game state management
  • Object-oriented programming with ES6 classes
  • Collision detection (circle-rectangle and rectangle-rectangle)
  • Trigonometry for aiming (atan2, cos, sin)
  • Velocity and vector-based motion

by Anonymous Β· 280 views

πŸ“– Read Docs πŸ‘οΈ View
695 Good - p5.js creative coding sketch

Good

This sketch creates an interactive emoji restaurant simulation where customers arrive, find tables, eat, and pay. Special characters like robbers steal food while police officers chase them, and sailboat people enjoy mealsβ€”all controlled by clicking or touching tables to spawn food.

Key Skills:
  • State machines
  • Object-oriented programming with class inheritance
  • Collision detection and avoidance
  • Animation loops
  • Array management and filtering

by Anonymous Β· 297 views

πŸ“– Read Docs πŸ‘οΈ View
696 Sketch 2026-02-22 23:12 - p5.js creative coding sketch

Sketch 2026-02-22 23:12

This sketch creates a 3D first-person shooter game using Three.js inside p5.js. Players navigate a 3D environment with WASD keys, aim with the mouse, and click to shoot red target boxes that reposition when hit, with a score tracker for each successful shot.

Key Skills:
  • Three.js scene, camera, and renderer
  • PointerLockControls and FPS movement
  • Raycasting and collision detection
  • Velocity and physics simulation
  • Event listeners for keyboard and mouse input

by Anonymous Β· 297 views

πŸ“– Read Docs πŸ‘οΈ View
697 Mycelium Network β€” Bioluminescent Growth Simulation - p5.js creative coding sketch

Mycelium Network β€” Bioluminescent Growth Simulation

This sketch simulates a bioluminescent mycelium network that organically grows across the canvas, with glowing branches that split and fuse. Clicking plants food sources that attract the network, while nutrient packets flow through branches, spores drift overhead, and ripples respond to your interactions.

Key Skills:
  • Recursive tree structures and branching algorithms
  • Vector math and angle interpolation for attraction
  • Collision detection and endpoint fusion
  • Particle systems and animated trails
  • Color gradients and lerp for visual effects

by Anonymous Β· 333 views

πŸ“– Read Docs πŸ‘οΈ View
698 lit fun - p5.js creative coding sketch

lit fun

This sketch creates a 3D fighting game where players control Spider-Man to battle an AI-controlled Deadpool in a procedurally generated city. The game features full 3D movement, web-swinging mechanics, attack systems, health tracking, and a dynamic third-person camera that players control with the mouse.

Key Skills:
  • WEBGL 3D rendering
  • Object-oriented game design
  • Game state management
  • Physics simulation (gravity, velocity)
  • Third-person camera control

by Anonymous Β· 389 views

πŸ“– Read Docs πŸ‘οΈ View
699 spider man 2 test - p5.js creative coding sketch

spider man 2 test

This sketch creates a 3D Spider-Man vs Venom battle scene in WEBGL mode with a procedurally generated city, realistic lighting, and character models built from geometric shapes. Miles Morales and Venom start on opposite sides of the canvas, approach each other, fight with visual effects, and reset to repeat the cycle.

Key Skills:
  • WEBGL 3D rendering
  • 3D transforms (translate, rotate, scale)
  • Procedural generation
  • State machines
  • Lighting and shading

by Anonymous Β· 301 views

πŸ“– Read Docs πŸ‘οΈ View
700 Sketch 2026-02-22 22:27 - p5.js creative coding sketch

Sketch 2026-02-22 22:27

This sketch creates an interactive fighting game where the player controls Spider-Man using keyboard and mouse to battle an AI-controlled Deadpool. The game features physics-based movement, web-swinging mechanics with momentum, health systems, and a turn-based attack system with cooldowns.

Key Skills:
  • Physics simulation with gravity and drag
  • Object-oriented code structure with methods
  • Game state management
  • Keyboard and mouse event handling
  • Collision detection and range checking

by Anonymous Β· 271 views

πŸ“– Read Docs πŸ‘οΈ View