11-30-2018, 05:06 PM
Code:
var x = 0;
var dx = 1;
var y = 0;
var dy = 0;
var ddy = 0.5;
for (var i = 0; dx > 0.01; i++) {
song.addNote(new Note(song, piano[Math.ceil(y)], x, dx, 0));
x += dx;
y += dy;
dx *= 0.999;
if (y > piano.length) {
y = 71;
dy *= -0.9;
}
if (y < 0) {
y = 0;
dy *= -0.9;
}
dy += ddy;
if (Math.abs(dy) < 0.1) ddy *= -1;
}
##987654
bounce.
remix.
Kim Wrote:##878337 + https://js-game.glitch.me + Doesnt take peopel serious if their has badly speling gramer puntuatin