Toggle navigation
GDD140
Creativity & Computation
I'm stuck!
Home
Students
Resources
Code
Schedule
Code
Week 1: Drawing
basic drawing - face
Week 2: Variables and Randomness
frameCount
mouseX, mouseY
(drawing)
mouse pressed
global variables
(for animation speed)
global variables
(for background color)
the random function
(random x pos on click)
random birthday head
(example project)
Week 3: Conditionals
if statements
if statements
(using AND - &&)
if statements
(using OR - ||)
if statements
(making a rollover)
else statements
else if statements
boolean variables
(keeping track of state - on/off)
Week 4: Loops
While loop
For loop
Nested for loops
Gradient
Modulo
Week 5: Arrays
Arrays ("code is so fun")
Arrays and For Loops
Arrays of Objects (pizzas)
Week 6: Images + Pixels
Dice and Selecting at Random
Displaying Pixels as Shapes and Manipulating Color (using get)
Randomly Showing Pixels
Drawing to Reveal an Image
Week 7: Functions + Classes
Functions — Arguments (drawing people)
Functions — Return (miles to km)
Functions — Rollover (rollover rect)
Classes — Array of Objects (rollover rect)
Week 8: p5.play Intro
p5.play — Sprites (move with position)
p5.play — Velocity (move with velocity)
p5.play — Spawner (generating sprites over time)
p5.play — Keyboard
p5.play — Overlap
p5.play — allSprites
Week 9: p5.play Basics
p5.play — Push Towards
p5.play — Push Towards While Down
p5.play — Follow Delay
p5.play — Mouse Events (onMousePressed, onMouseReleased, onMouseOver, onMouseOut)
p5.play — Mouse Booleans (mouseIsPressed to rotate)
p5.play — Game Over
p5.play — Displace
p5.play — Collide
p5.play — Sprite Groups Using Arrays/Loops
p5.play — Sprite Groups
Week 10: p5.play Sound and Image
p5.play — Collision Callback Functions
p5.play — Sound and Image
p5.play — Animation
p5.play — Animation and Sprites
p5.play — Multiple Animations Jump
p5.play — Using Spritesheets
p5.play — Leo's Health and Reset Demos