strumline bs

This commit is contained in:
Yoshman29
2023-04-22 23:26:54 +02:00
parent 2b2990ae30
commit 70c98639b2
6 changed files with 154 additions and 118 deletions
+17 -5
View File
@@ -14,10 +14,22 @@ function postCreate() {
}
function postUpdate(elapsed) {
// var sin = Math.sin(curBeatFloat * Math.PI / 2);
for(s in strumLines) {
for(i in 0...4) {
var n = s.members[i];
n.angle = Math.sin(curBeatFloat + (i * 0.45)) * 35;
}
}
// camGame.angle = sin * -15;
if (curSection != null)
defaultCamZoom = curSection.mustHitSection ? 0.9 : 0.5;
// for(s in strumLines) {
// for(i in 0...4) {
// var n = s.members[i];
// n.y = FlxG.height - 200;
// n.angle = 180;
// }
// }
// if (curSection != null)
// defaultCamZoom = curSection.mustHitSection ? 0.9 : 0.5;
}