modcharts
This commit is contained in:
@ -82,6 +82,9 @@ class ChartingState extends MusicBeatState
|
||||
var gridBlackLine:FlxSprite;
|
||||
var vocals:FlxSound;
|
||||
|
||||
var player2:Character = new Character(0,0, "dad");
|
||||
var player1:Boyfriend = new Boyfriend(0,0, "bf");
|
||||
|
||||
var leftIcon:HealthIcon;
|
||||
var rightIcon:HealthIcon;
|
||||
|
||||
@ -365,6 +368,18 @@ class ChartingState extends MusicBeatState
|
||||
tab_group_note.add(applyLength);
|
||||
|
||||
UI_box.addGroup(tab_group_note);
|
||||
|
||||
/*player2 = new Character(0,gridBG.y, _song.player2);
|
||||
player1 = new Boyfriend(player2.width * 0.2,gridBG.y + player2.height, _song.player1);
|
||||
|
||||
player1.y = player1.y - player1.height;
|
||||
|
||||
player2.setGraphicSize(Std.int(player2.width * 0.2));
|
||||
player1.setGraphicSize(Std.int(player1.width * 0.2));
|
||||
|
||||
UI_box.add(player1);
|
||||
UI_box.add(player2);*/
|
||||
|
||||
}
|
||||
|
||||
function loadSong(daSong:String):Void
|
||||
@ -559,6 +574,77 @@ class ChartingState extends MusicBeatState
|
||||
|
||||
strumLine.y = getYfromStrum((Conductor.songPosition - sectionStartTime()) % (Conductor.stepCrochet * _song.notes[curSection].lengthInSteps));
|
||||
|
||||
|
||||
/*curRenderedNotes.forEach(function(note:Note) {
|
||||
if (strumLine.overlaps(note) && strumLine.y == note.y) // yandere dev type shit
|
||||
{
|
||||
if (_song.notes[curSection].mustHitSection)
|
||||
{
|
||||
trace('must hit ' + Math.abs(note.noteData));
|
||||
if (note.noteData < 4)
|
||||
{
|
||||
switch (Math.abs(note.noteData))
|
||||
{
|
||||
case 2:
|
||||
player1.playAnim('singUP', true);
|
||||
case 3:
|
||||
player1.playAnim('singRIGHT', true);
|
||||
case 1:
|
||||
player1.playAnim('singDOWN', true);
|
||||
case 0:
|
||||
player1.playAnim('singLEFT', true);
|
||||
}
|
||||
}
|
||||
if (note.noteData >= 4)
|
||||
{
|
||||
switch (note.noteData)
|
||||
{
|
||||
case 6:
|
||||
player2.playAnim('singUP', true);
|
||||
case 7:
|
||||
player2.playAnim('singRIGHT', true);
|
||||
case 5:
|
||||
player2.playAnim('singDOWN', true);
|
||||
case 4:
|
||||
player2.playAnim('singLEFT', true);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
trace('hit ' + Math.abs(note.noteData));
|
||||
if (note.noteData < 4)
|
||||
{
|
||||
switch (Math.abs(note.noteData))
|
||||
{
|
||||
case 2:
|
||||
player2.playAnim('singUP', true);
|
||||
case 3:
|
||||
player2.playAnim('singRIGHT', true);
|
||||
case 1:
|
||||
player2.playAnim('singDOWN', true);
|
||||
case 0:
|
||||
player2.playAnim('singLEFT', true);
|
||||
}
|
||||
}
|
||||
if (note.noteData >= 4)
|
||||
{
|
||||
switch (note.noteData)
|
||||
{
|
||||
case 6:
|
||||
player1.playAnim('singUP', true);
|
||||
case 7:
|
||||
player1.playAnim('singRIGHT', true);
|
||||
case 5:
|
||||
player1.playAnim('singDOWN', true);
|
||||
case 4:
|
||||
player1.playAnim('singLEFT', true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});*/
|
||||
|
||||
if (curBeat % 4 == 0 && curStep >= 16 * (curSection + 1))
|
||||
{
|
||||
trace(curStep);
|
||||
@ -783,6 +869,18 @@ class ChartingState extends MusicBeatState
|
||||
updateGrid();
|
||||
}
|
||||
|
||||
override function beatHit()
|
||||
{
|
||||
trace('beat');
|
||||
|
||||
super.beatHit();
|
||||
if (!player2.animation.curAnim.name.startsWith("sing"))
|
||||
{
|
||||
player2.playAnim('idle');
|
||||
}
|
||||
player1.dance();
|
||||
}
|
||||
|
||||
function recalculateSteps():Int
|
||||
{
|
||||
var lastChange:BPMChangeEvent = {
|
||||
|
Reference in New Issue
Block a user