11import processing.sound.* ;
2-
2+ import processing.opengl.* ;
3+ import android.content.Context ;
34SoundFile sound;
45SoundFile click;
56Button menu;
@@ -8,34 +9,42 @@ Button back;
89Button fireworkEffect;
910Button devs;
1011Button circNetw;
12+ Button spark;
13+ ArrayList<Spark > sparks;
14+
1115PFont mfont;
1216PImage Plogo ;
1317float angle = 0 ;
1418int maxRings = 20 ;
1519ArrayList<Ring > rings = new ArrayList<Ring > ();
1620boolean mousePressedFlag = false ;
1721boolean mouseReleasedFlag = true ;
22+ boolean mouseFlag = false ;
1823int numCircles = 50 ;
1924float maxDistance = 200 ;
2025Circle [] circles = new Circle [numCircles];
2126
2227ArrayList<Firework > fireworks;
2328int scenes= 0 ; // 0menu1effectlist2,3...effects
2429void setup () {
25- size (displayWidth, displayHeight, P2D );
30+ size (displayWidth, displayHeight, OPENGL );
2631 menu = new Button (width / 2 , height / 2 , width / 2 , height / 20 , 0 , 0 );
2732 devs = new Button (width / 2 , height / 1.7 , width / 2 , height / 20 , 0 , 0 );
2833 waveEffect = new Button (width / 3 , height / 10 , width / 2.5 , height / 20 , 200 , 150 );
2934 fireworkEffect = new Button (width / 3 , height / 6 , width / 2.2 , height / 20 , 200 , 150 );
3035 circNetw= new Button (width / 3 , height / 4.3 , width / 2.2 , height / 20 , 200 , 150 );
36+ spark = new Button (width / 3 , height / 3.3 , width / 2.6 , height / 20 , 200 , 150 );
3137 back = new Button (width / 4 , height / 1.11 , width / 3 , height / 20 , 200 , 150 );
3238 sound = new SoundFile (this , " muzik.wav" );
3339 click = new SoundFile (this , " click.wav" );
3440 Plogo = loadImage (" Plogo.png" );
3541 mfont = createFont (" KiwiSoda.ttf" , 50 );
3642 textFont (mfont);
43+ sparks = new ArrayList<Spark > ();
3744 fireworks = new ArrayList<Firework > ();
3845 sound. loop();
46+
47+ strokeCap (ROUND );
3948 for (int i = 0 ; i < numCircles; i++ ) {
4049 circles[i] = new Circle (random (width ), random (height ));
4150 }
@@ -83,7 +92,7 @@ void draw() {
8392 fill (255 );
8493 text (" Back" , width / 4 , height / 1.1 );
8594 textSize (60 );
86- text (" Main developer : elliktronic \n Music by : example \n " , width / 2 , height / 2 );
95+ text (" Main developer : elliktronic \n Music by : (downloaded on random site) \n Spark effect: by CalsignLabs " , width / 2 , height / 2 );
8796 image (Plogo , width / 1.5 , height / 1.2 , width / 5 , height / 10 );
8897 if (back. IsPressed ()) {
8998 scenes= 0 ;
@@ -92,4 +101,7 @@ void draw() {
92101 if (scenes== 5 ) {
93102 CircleNetworkEff ();
94103 }
104+ if (scenes== 6 ) {
105+ SparksEff ();
106+ }
95107}
0 commit comments