This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//VARIABLES | |
//0: Initial Screen | |
//1: Game Screen | |
//2: Game over screen | |
PFont f; | |
int gameScreen = 0; | |
//SETUP BLOCK | |
void setup() { | |
size(480,270,P2D); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Caitlin Persichilli PVA Final Fall 2016 | |
//Attempt 4 | |
PFont myFont; | |
int gameScreen = 0; | |
//SETUP BLOCK | |
void setup() { | |
fullScreen(); | |
//size(1000,700); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Caitlin Persichilli PVA Final Fall 2016 | |
//Attempt 4 | |
PFont myFont; | |
int gameScreen = 0; | |
//SETUP BLOCK | |
void setup() { | |
//fullScreen(); | |
size(1000,700); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Caitlin Persichilli PVA Final Fall 2016 | |
//Attempt 4 | |
PFont myFont; | |
int gameScreen = 0; | |
//SETUP BLOCK | |
void setup() { | |
//fullScreen(); | |
size(1000,700); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Caitlin Persichilli Midterm | |
//Declare global variables | |
int x = 0; | |
int y = 0; | |
int z = 0; | |
void setup() { | |
//size(1000,700); | |
fullScreen(); | |
background(255); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float endX=0; | |
void setup() { | |
size(200,200); | |
background(123,37,245); | |
} | |
void draw() { | |
backgroundChange(); | |
grow(); | |
ellipseChange(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
NewerOlder