Skip to content

Instantly share code, notes, and snippets.

@simplyluke
Created January 18, 2015 03:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simplyluke/e56bd69109c84469af0e to your computer and use it in GitHub Desktop.
Save simplyluke/e56bd69109c84469af0e to your computer and use it in GitHub Desktop.
//for the nose
fill (#F1D5E5);
if ((keyPressed) && (key == CODED)){
if (keyCode == UP) { // add a bracket here
fill (#F1D5E5);
ellipse (250,265, 9,8); //makes the nose bigger
} if (keyCode == LEFT){ //indent this, it's still inside of the if ((keyPressed bit
fill (#45173A); //makes the nose disappear
ellipse (250,265, 9,8);
} // add a bracket here, you need to close keyCode == LEFT
// then the bracket on the next line closes the if ((keyPressed bit
} else {
ellipse (250,265, 5,4);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment