void keyPressed() {
if (key == CODED) {
if (keyCode == LEFT) {
x = x - 10;
direction = -1;
direction2 = 0;
}
else if (keyCode == RIGHT) {
x = x + 10;
direction = 1;
direction2 = 0;
}
else if (keyCode == UP) {
y = y - 10;
direction = 0;
direction2 = -1;
}
else if (keyCode == DOWN) {
y = y + 10;
direction = 0;
direction2 = 1;
}
}
}
void render() {
for ( int i=-1; i < 2; i++) {
for ( int j=-1; j < 2; j++) {
pushMatrix();
translate(x + (i * width), y + (j*height));
if ( direction == -1) {
rotate(PI);
}
if ( direction2 == 1) {
rotate(HALF_PI);
}
if ( direction2 == -1) {
rotate( PI + HALF_PI );
}
arc(0, 0, radius, radius, map((millis() 500), 0, 500, 0, 0.52), map((millis() 500), 0, 500, TWO_PI, 5.76) );
popMatrix();
// mouth movement //
}
}
}
making other people do your homework is just dumb, how are you learning from this. You should try to do the homework yourself first and then we all can help you. without you not doing anything and expecting us to do everything for you; is ludicrous.
Hi I’m sorry if I made it look that way but I’ve made my own game and just wanted to see how someone else has done it differently.
I would honestly not cheat I am just doing this for fun sorry to made it have seem if I was cheating.