cool stress stuff that im going to remove soon

This commit is contained in:
Yoshman29
2023-01-19 15:16:28 +01:00
parent 74bd79fe77
commit c22c8a0258
4 changed files with 22 additions and 10 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ function onDance(event) {
}
function onPlaySingAnim(event) {
dir = FlxG.random.int(0, 1) + (event.direction == 0 ? 1 : 3);
dir = FlxG.random.int(0, 1) + (event.direction == 0 ? 3 : 1);
event.cancel();
playAnim("shoot" + Std.string(dir), true);
+19 -8
View File
@@ -2,18 +2,29 @@ import openfl.utils.Assets;
function onNoteCreation(event) {
if (event.noteType != null || event.note.noteTypeID > 0) {
event.note.visible = false;
event.note.mustPress = false;
// event.note.visible = false;
event.note.playerID = 2;
}
}
function onDadHit(event) {
if (event.noteType == "Pico Speaker Note") {
event.character = gf;
event.cancelStrumGlow();
}
}
var strumLine:StrumLine;
function postCreate() {
strumLine = new StrumLine([gf], 0.5, true, controls);
players.push(strumLine);
strumLine.generateStrums();
generateNotes(CoolUtil.parseJson(Paths.chart('stress', 'picospeaker')).song);
for(s in cpuStrums)
s.x -= FlxG.width * 0.125;
for(s in playerStrums)
s.x += FlxG.width * 0.125;
}
function update(elapsed) {
camHUD.zoom /= 0.75;
}
function postUpdate(elapsed) {
camHUD.zoom *= 0.75;
}
+1 -1
View File
@@ -1 +1 @@
2078
2079
+1
View File
@@ -64,6 +64,7 @@ class Script extends FlxBasic implements IFlxDestroyable {
"HudCamera" => funkin.game.HudCamera,
"Note" => funkin.game.Note,
"Strum" => funkin.game.Strum,
"StrumLine" => funkin.game.StrumLine,
"Character" => funkin.game.Character,
"Boyfriend" => funkin.game.Character, // for compatibility
"PauseSubstate" => funkin.menus.PauseSubState,