Starting from now, I'm gonna share my SGL Code for you all to experiment also :3
This one was particularly simple, I could have done it through loops but I wanted it to be fixed.
SB itself was just a referrence to the game itself :3
This one was particularly simple, I could have done it through loops but I wanted it to be fixed.
SB itself was just a referrence to the game itself :3
SGL Code
var oneBeat = 473 - 200;
var halfBeat = oneBeat/2;
var quarterBeat = halfBeat/2;
var thirdBeat = oneBeat/3;
//STRIKEs
function dots(startTime, xStart, xAffect, yAffect, r, g, b, s) {
var dot = new Sprite("SB/particle.png");
var oneBeat = 473 - 200;
var halfBeat = oneBeat/2;
var quarterBeat = halfBeat/2;
var thirdBeat = oneBeat/3;
var centerX = 320;
var centerY = 240;
dot.additive(startTime, startTime + (oneBeat*4));
dot.fade(0);
dot.fade(0, startTime, startTime + (oneBeat*4), (rand(10, 100)/100.00), 0);
dot.color(r, g, b);
dot.moveX(0, startTime, startTime + (oneBeat*4), xStart, xStart + xAffect);
dot.moveY(1, startTime, startTime + (oneBeat*4), 480, centerY + yAffect);
dot.scale((rand(10, s)/100.00));
}
function particles(startTime, xSpread, xAffect, yAffect, r, g, b, s) {
dots(startTime, 0, xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+1, xSpread, xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+2, (xSpread*2), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+3, (xSpread*3), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+4, (xSpread*4), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+5, (xSpread*5), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+6, (xSpread*6), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+7, (xSpread*7), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+8, (xSpread*8), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+9, (xSpread*9), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+10, (xSpread*10), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+11, (xSpread*11), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+12, (xSpread*12), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+13, (xSpread*13), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+14, (xSpread*14), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+15, (xSpread*15), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+16, (xSpread*16), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+17, (xSpread*17), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+18, (xSpread*18), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+19, (xSpread*19), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+20, (xSpread*20), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+21, (xSpread*21), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+22, (xSpread*22), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+23, (xSpread*23), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+24, (xSpread*24), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+25, (xSpread*25), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+26, (xSpread*26), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+27, (xSpread*27), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+28, (xSpread*28), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+29, (xSpread*29), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+30, (xSpread*30), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+31, (xSpread*31), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+32, (xSpread*32), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+33, (xSpread*33), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+34, (xSpread*34), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+35, (xSpread*35), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+36, (xSpread*36), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+37, (xSpread*37), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+38, (xSpread*38), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+39, (xSpread*39), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+40, (xSpread*40), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+41, (xSpread*41), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+42, (xSpread*42), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+43, (xSpread*43), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+44, (xSpread*44), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+45, (xSpread*45), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+46, (xSpread*46), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+47, (xSpread*47), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+48, (xSpread*48), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+49, (xSpread*49), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+50, (xSpread*50), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+51, (xSpread*51), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+52, (xSpread*52), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+53, (xSpread*53), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+54, (xSpread*54), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+55, (xSpread*55), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+56, (xSpread*56), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+57, (xSpread*57), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+58, (xSpread*58), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+59, (xSpread*59), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+60, (xSpread*60), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+61, (xSpread*61), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+62, (xSpread*62), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
dots(startTime+63, (xSpread*63), xAffect, rand(-1*yAffect, yAffect), r, g, b, s);
}
function strike(startTime, xSpread, xAffect, yAffect, r, g, b, s) {
var oneBeat = 473 - 200;
particles(startTime, xSpread, xAffect, yAffect, r, g, b, s);
particles(startTime, xSpread, xAffect, yAffect, r, g, b, s);
var grad = new Sprite("SB/clap.png", Background, BottomCentre);
grad.additive(startTime, startTime + oneBeat);
grad.scaleVec(640,1);
grad.move(0, 480);
grad.fade(0);
grad.fade(0, startTime, startTime + oneBeat, 1, 0);
grad.color(r, g, b);
}
function bothStrike(startTime, range) {
strike(startTime, 10, rand(0, (range)), 320, 120, 240, 255, 120);
strike(startTime, 10, rand(-1*(range), 0), 320, 255, 120, 240, 120);
}
strike(7018, 10, rand(0, 60), 320, 120, 240, 255, 120);
strike(7427, 10, rand(-60, 0), 320, 255, 120, 240, 120);
strike(12473, 10, rand(0, 40), 320, 120, 240, 255, 120);
strike(12745, 10, rand(0, 80), 320, 120, 240, 255, 120);
strike(13018, 10, rand(0, 120), 320, 120, 240, 255, 120);
strike(13291, 10, rand(0, 160), 320, 120, 240, 255, 120);
strike(14655, 10, rand(-40, 0), 320, 255, 120, 240, 120);
strike(14927, 10, rand(-80, 0), 320, 255, 120, 240, 120);
strike(15200, 10, rand(-120, 0), 320, 255, 120, 240, 120);
strike(15473, 10, rand(-160, 0), 320, 255, 120, 240, 120);
//strike(19836, 10, rand(0, 40), 320, 120, 240, 255, 120);
//strike(19836, 10, rand(-40, 0), 320, 255, 120, 240, 120);
bothStrike(19836, 200);
bothStrike(24200, 60);
strike(27745, 10, rand(0, 60), 320, 120, 240, 255, 120);
strike(28018, 10, rand(-60, 0), 320, 255, 120, 240, 120);
bothStrike(28564, 60);
strike(36473, 10, rand(0, 60), 320, 120, 240, 255, 120);
strike(36745, 10, rand(-60, 0), 320, 255, 120, 240, 120);
strike(37018, 10, rand(0, 60), 320, 120, 240, 255, 120);
strike(37291, 10, rand(-60, 0), 320, 255, 120, 240, 120);
strike(37836, 10, rand(0, 60), 320, 120, 240, 255, 120);
strike(38109, 10, rand(-60, 0), 320, 120, 240, 255, 120);
strike(41655, 10, rand(0, 60), 320, 120, 240, 255, 120);
strike(42200, 10, rand(-60, 0), 320, 255, 120, 240, 120);
strike(42473, 10, rand(0, 60), 320, 255, 120, 240, 120);
strike(44109, 10, rand(-60, 0), 320, 255, 120, 240, 120);
strike(45200, 10, rand(0, 60), 320, 120, 240, 255, 120);
strike(45473, 10, rand(-60, 0), 320, 255, 120, 240, 120);
bothStrike(45745, 60);
strike(46564, 10, rand(-60, 0), 320, 255, 120, 240, 120);
strike(46836, 10, rand(0, 60), 320, 255, 120, 240, 120);
strike(50382, 10, rand(-60, 0), 320, 255, 120, 240, 120);
strike(50927, 10, rand(0, 60), 320, 120, 240, 255, 120);
strike(51200, 10, rand(-60, 0), 320, 120, 240, 255, 120);
strike(52018, 10, rand(0, 60), 320, 120, 240, 255, 120);
bothStrike(55018, 120);
strike(63473, 10, rand(-60, 0), 320, 255, 120, 240, 120);
strike(67564, 10, rand(0, 60), 320, 120, 240, 255, 120);
strike(67836, 10, rand(-60, 0), 320, 120, 240, 255, 120);
strike(71382, 10, rand(-60, 0), 320, 255, 120, 240, 120);
strike(71655, 10, rand(0, 60), 320, 255, 120, 240, 120);
strike(71927, 10, rand(-60, 0), 320, 255, 120, 240, 120);
strike(80927, 10, rand(-60, 0), 320, 255, 120, 240, 120);
strike(81200, 10, rand(0, 60), 320, 120, 240, 255, 120);
bothStrike(86655, 120);
strike(88018, 10, rand(-60, 0), 320, 255, 120, 240, 120);
strike(88564, 10, rand(0, 60), 320, 120, 240, 255, 120);
bothStrike(88836, 120);
bothStrike(89655, 120);
strike(91564, 10, rand(0, 60), 320, 120, 240, 255, 120);
strike(91836, 10, rand(-60, 0), 320, 120, 240, 255, 120);
strike(94018, 10, rand(0, 60), 320, 120, 240, 255, 120);
strike(95927, 10, rand(-60, 0), 320, 255, 120, 240, 120);
strike(96200, 10, rand(0, 60), 320, 255, 120, 240, 120);
strike(97564, 10, rand(-60, 0), 320, 255, 120, 240, 120);
strike(97836, 10, rand(0, 60), 320, 255, 120, 240, 120);
strike(98109, 10, rand(-60, 0), 320, 255, 120, 240, 120);
strike(98382, 10, rand(0, 60), 320, 255, 120, 240, 120);
strike(100291, 10, rand(0, 60), 320, 120, 240, 255, 120);
strike(100564, 10, rand(-60, 0), 320, 120, 240, 255, 120);
strike(105473, 10, rand(-60, 0), 320, 255, 120, 240, 120);
strike(105745, 10, rand(0, 60), 320, 255, 120, 240, 120);
strike(106291, 10, rand(-60, 0), 320, 255, 120, 240, 120);
strike(106564, 10, rand(0, 60), 320, 255, 120, 240, 120);
bothStrike(106836, 120);
strike(108473, 10, rand(0, 40), 320, 120, 240, 255, 120);
strike(108745, 10, rand(0, 80), 320, 120, 240, 255, 120);
strike(109018, 10, rand(0, 120), 320, 120, 240, 255, 120);
strike(109291, 10, rand(0, 160), 320, 120, 240, 255, 120);
strike(110655, 10, rand(-40, 0), 320, 255, 120, 240, 120);
strike(110927, 10, rand(-80, 0), 320, 255, 120, 240, 120);
strike(111200, 10, rand(-120, 0), 320, 255, 120, 240, 120);
strike(111473, 10, rand(-160, 0), 320, 255, 120, 240, 120);
bothStrike(115836, 200);