background girls

This commit is contained in:
Cameron Taylor
2021-02-02 03:24:34 -05:00
parent ec4a97a267
commit dd1d6263b9
9 changed files with 102 additions and 33 deletions

View File

@ -402,6 +402,9 @@ class PlayState extends MusicBeatState
bgGirls = new BackgroundGirls(-100, 190);
bgGirls.scrollFactor.set(0.9, 0.9);
if (SONG.song.toLowerCase() == 'roses')
bgGirls.getScared();
bgGirls.setGraphicSize(Std.int(bgGirls.width * daPixelZoom));
bgGirls.updateHitbox();
add(bgGirls);
@ -556,6 +559,10 @@ class PlayState extends MusicBeatState
dad.x += 150;
dad.y += 360;
camPos.set(dad.getGraphicMidpoint().x + 300, dad.getGraphicMidpoint().y);
case 'senpai-angry':
dad.x += 150;
dad.y += 360;
camPos.set(dad.getGraphicMidpoint().x + 300, dad.getGraphicMidpoint().y);
case 'spirit':
dad.x -= 150;
dad.y += 100;
@ -1325,6 +1332,9 @@ class PlayState extends MusicBeatState
case 'senpai':
camFollow.y = dad.getMidpoint().y - 430;
camFollow.x = dad.getMidpoint().x - 100;
case 'senpai-angry':
camFollow.y = dad.getMidpoint().y - 430;
camFollow.x = dad.getMidpoint().x - 100;
}
if (dad.curCharacter == 'mom')