My first web game v.PHP yah!
And below are my php codes.
Tried the butter today with Kate, interesting!! The tricky things is that butter melts quite easily, might need to put in back in refrigerator several time.
It’s a story about butter who’s very unsatisfied with his greasy traces, and wants to fly because of the inspiration from the butterfly!
Here’s the sets and props.

And here’s the discussion about our dilemma about choosing whether butter or origami as our character.




Ahhhh failed to create the electrons flow in light bulb. Planed to
Things worth mentioned:
ParticleBehavior2D b = physics.behaviors.get(physics.behaviors.size()-1);
physics.removeBehavior(b);
if (key == 'a') {
physics.addBehavior(new GravityBehavior(new Vec2D(random(-0.3), random(-0.05, 0.05))));
}
else if (key == 'w') {
physics.addBehavior(new GravityBehavior(new Vec2D(random(-0.05, 0.05), random(-0.3))));
}
else if (key == 'd') {
physics.addBehavior(new GravityBehavior(new Vec2D(random(0.3), random(-0.05, 0.05))));
}
else if (key == 's') {
physics.addBehavior(new GravityBehavior(new Vec2D(random(-0.05, 0.05), random(0.3))));
}
for (VerletSpring2D s: strings) {
float currHue = map(s.b.sub(s.a).heading(), -PI, PI, 0, 1);
stroke(TColor.newHSV(currHue, 1, 1).toARGB());
line(s.a.x, s.a.y, s.b.x, s.b.y);
}
Original version, without vertex to fill the mesh. Looks like seaweeds.
Looks like worms.
And here are some tutorials and examples I found useful!
First attempt to use amazing library Toxiclibs, mushroom-like water creatures with big head and jumpy acts. Cursor is an attractor to pull them closer to each other. And it ends up with a beautiful mistake oops.
As you can see, the frame rate of it became super slow because I put addBehavior() in draw() instead of in setup(), or in the constructor of the class. If I didn’t have an office hour with Daniel Shiffman I’d never know! But after I rewrote my codes, having all of the adding-force stuff happen just once, my sketch became less interesting, as below.
Fantasy kind of comes to live guys!
After the PComp class, I was inspired to do more about how the communications between Arduino and Processing. I want them to be more instinct, more meaningful, and more related to each other, not just switching on and off. And stay away using MOUSE to control/adjust my work all the time. My works should have their own behaviors patterns, without others tell them what to do. (kind of like users can only have small control/impact on them ;))
So I came out of an idea to control the chocolate spiders amount of my this week’s ICM homework! Since my intention of this project is scaring away people who try to eat it, why not building the interaction based on that? The more you come closer to the cookie(I use photosensor), the more chocolate spiders will come out alive. And the button at Top Left corner will turn red to warn!
And it worked! 😀 The contends and the behavior matched perfectly. First time! Exciting!! And my circuit looked simple as well.

Come out a good/crazy idea, and then execute it well in the most instinct and simplest way. It’s my goal of life now.
Below are my To-Do-Lists that inspired through today’s PComp class:
Choco spider cookie– lovely product that makes you scream on the second of you opening your mouth to give it a bite! Things is that, I felt extremely hungry recently and just couldn’t help eat up all the food around me, and if this cookie existed it would do me a huge favor.
For this assignment, I practiced the usage of ArrayList and PImage, and was more comfortable with PVector. And I’ve also learned about the function lerp() and velocity.heading() of PVector through the office hour with Daniel Shiffman! Below are some bloody difficulties I came across.
void grow() {
if (frameCount % 14 == 1 && j<4) {
legs.add(new Leg(0, 0, 20*cos(angle), 20*sin(angle)));
angle += PI/6;
j++;
}
if (j==4) {
angle += PI/3;
j++;
}
if (j>4) {
if (frameCount % 14 == 1 && j<9) {
legs.add(new Leg(0, 0, 20*cos(angle), 20*sin(angle)));
angle += PI/6;
j++;
}
}
}
But honestly, this time I was not thrilled about my work. Especially after I connected it whit Arduino. It worked, but I just didn’t feel it interesting enough. It’s really difficult to be creative, especially when you want to be. Maybe that’s because I was hungry that time….? It’s like you make a lot of efforts to give birth a baby, but in the end you find you don’t love he/she at all :/
Anyway, below are the codes.
Hi Elevator,
How you’re used_my assumption
How you’re actually used_from observation
What if… Then… Moment for you my dear Elevator