Skip to content

Commit

Permalink
philly charts and hair
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjamuffin99 committed Dec 11, 2020
1 parent eb017da commit b110f8b
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 6 deletions.
1 change: 1 addition & 0 deletions assets/data/philly/philly-easy.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/data/philly/philly-hard.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/data/philly/philly.json

Large diffs are not rendered by default.

21 changes: 16 additions & 5 deletions source/Character.hx
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,13 @@ class Character extends FlxSprite
}
}

switch (curCharacter)
{
case 'gf':
if (animation.curAnim.name == 'hairFall' && animation.curAnim.finished)
playAnim('danceRight');
}

super.update(elapsed);
}

Expand All @@ -225,12 +232,16 @@ class Character extends FlxSprite
case 'bf':

case 'gf':
danced = !danced;
if (!animation.curAnim.name.startsWith('hair'))
{
danced = !danced;

if (danced)
playAnim('danceRight');
else
playAnim('danceLeft');
}

if (danced)
playAnim('danceRight');
else
playAnim('danceLeft');
case 'spooky':
danced = !danced;

Expand Down
2 changes: 2 additions & 0 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1392,6 +1392,7 @@ class PlayState extends MusicBeatState
if (trainSound.time >= 4700)
{
startedMoving = true;
gf.playAnim('hairBlow');
}

if (startedMoving)
Expand All @@ -1414,6 +1415,7 @@ class PlayState extends MusicBeatState

function trainReset():Void
{
gf.playAnim('hairFall');
phillyTrain.x = FlxG.width + 200;
trainMoving = false;
// trainSound.stop();
Expand Down

0 comments on commit b110f8b

Please sign in to comment.