-Ran
Smash Master
yBase = 0;I feel like such a nerd, sniffing through the source code and finding out how they did this.
xBase = 0;
currStep = 0;
a_count = 0;
b_count = 1;
c_count = 2;
d_count = 3;
move = 1;
if(document.layers || ns6) {
yBase = window.innerHeight / 3;
xBase = window.innerWidth / 6;
}
if(document.all) {
yBase = window.document.body.offsetHeight / 3;
xBase = window.document.body.offsetWidth / 6;
}
function dismisscupid() {
clearInterval(flycupid);
$("#out").hide();
}
function animatecupid() {
a_count = a_count + move;
b_count = b_count + move;
c_count = c_count + move;
currStep = currStep + step;
if(a_count >= 3) a_count = 0;
if(b_count >= 3) b_count = 0;
if(c_count >= 3) c_count = 0;
for(i=0; i < 3; i++) {
$("#ns6Bats"+i).css("top", Ypos+yBase*Math.sin(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/10));
$("#ns6Bats"+i).css("left", Xpos+xBase*Math.cos(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/62));
}
}
$(document).mousemove(function(e) {
Xpos = e.pageX;
Ypos = e.pageY;
});
$("#out").hide();
var started = 0;
function metavamp() {
if(started != 1) {
started = 1;
$("#out").show();
flycupid = setInterval("animatecupid();", 30);
}
}