Skip to content

Instantly share code, notes, and snippets.

//VARIABLES
//0: Initial Screen
//1: Game Screen
//2: Game over screen
PFont f;
int gameScreen = 0;
//SETUP BLOCK
void setup() {
size(480,270,P2D);
//Caitlin Persichilli PVA Final Fall 2016
//Attempt 4
PFont myFont;
int gameScreen = 0;
//SETUP BLOCK
void setup() {
fullScreen();
//size(1000,700);
//Caitlin Persichilli PVA Final Fall 2016
//Attempt 4
PFont myFont;
int gameScreen = 0;
//SETUP BLOCK
void setup() {
//fullScreen();
size(1000,700);
//Caitlin Persichilli PVA Final Fall 2016
//Attempt 4
PFont myFont;
int gameScreen = 0;
//SETUP BLOCK
void setup() {
//fullScreen();
size(1000,700);
//declaring all the images
PImage a1;
PImage a2;
PImage b1;
PImage b2;
PImage c1;
PImage c2;
int value = 0;
//declaring all the images and locations
//Caitlin Persichilli Midterm
//Declare global variables
int x = 0;
int y = 0;
int z = 0;
void setup() {
//size(1000,700);
fullScreen();
background(255);
float endX=0;
void setup() {
size(200,200);
background(123,37,245);
}
void draw() {
backgroundChange();
grow();
ellipseChange();
void setup() {
size(500,400);
background(255);
}
void draw() {
background(0);
//start with i as 0
int i = 0;
//while i is less than the width of the window
void setup() {
size(500,400);
background(255);
}
void draw() {
background(0);
//start with i as 0
int i = 0;
//while i is less than the width of the window
float endX=0;
void setup() {
size(200,200);
background(123,37,245);
}
void draw() {
if (mouseX >= width/2) {
background(123,37,245); } //background is red
else {