xxxxxxxxxx
//----- References and Inspirations -----\\
// Clouds: "Blue Mountains" https://www.openprocessing.org/sketch/179401
// Mountains: "Green Mountain" https://www.openprocessing.org/sketch/335230
// Lightning: "Lightning Strike" https://www.openprocessing.org/sketch/431177
//----- &&& -----\\
//----- &&& -----\\
//Sky
SkyBG skybg;
//Mountains
Mountains mountain1;
Mountains1 mountain2;
Mountains2 mountain3;
//Tree
int numtrees = 400;
Tree [] trees = new Tree [numtrees];
//Rain
int numrain = 300;
Rain [] fallingrain = new Rain [numrain];
//Clouds
Clouds rainclouds;
//Moon
Moon fullmoon;
//Lightning
Lightning rayo;
void setup (){
//fullScreen ();
size (700, 600, P2D);
smooth ();
//Sky BG
skybg = new SkyBG ();
fullmoon = new Moon ();
mountain1 = new Mountains ();
mountain2 = new Mountains1 ();
mountain3 = new Mountains2 ();
for (int index1 = 0; index1 < numtrees; index1 = index1 + 1) {
trees[index1] = new Tree ();
}
for (int index1 = 0; index1 < numrain; index1 = index1 + 1) {
fallingrain[index1] = new Rain ();
}
rayo = new Lightning ();
rainclouds = new Clouds ();
}
void draw (){
skybg.display ();
mountain1.display ();
mountain2.display ();
mountain3.display ();
for (int index1 = 0; index1 < numtrees; index1 = index1 +1) {
trees[index1].display ();
}
for (int index1 = 0; index1 < numrain; index1 = index1 +1) {
fallingrain[index1].display ();
fallingrain[index1].move ();
}
fullmoon.display ();
rayo.display ();
rainclouds.display ();
}