cool stress stuff that im going to remove soon
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
@@ -1 +1 @@
|
||||
2078
|
||||
2079
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user