Skip to content

Commit

Permalink
charts and a bunch of christmas stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjamuffin99 committed Jan 20, 2021
1 parent 88d4b5f commit d2509f0
Show file tree
Hide file tree
Showing 36 changed files with 395 additions and 11 deletions.
Binary file not shown.
Binary file added art/flashFiles/Christmas_Background_Assets.fla
Binary file not shown.
Binary file added art/flashFiles/EVIL_Christmas_BG.fla
Binary file not shown.
Binary file added art/flashFiles/GF_ass_sets_CHRISTMAS_VARIANT.fla
Binary file not shown.
1 change: 1 addition & 0 deletions assets/data/cocoa/cocoa-easy.json

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/data/winter-horrorland/winter-horrorland-easy.json

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/data/winter-horrorland/winter-horrorland.json

Large diffs are not rendered by default.

Binary file added assets/images/christmas/bgEscalator.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/christmas/bgWalls.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/christmas/bottomBop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions assets/images/christmas/bottomBop.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<TextureAtlas imagePath="bottomBop.png">
<!-- Created with Adobe Animate version 20.0.0.17400 -->
<!-- http://www.adobe.com/products/animate.html -->
<SubTexture name="Bottom Level Boppers0000" x="0" y="0" width="1975" height="661" frameX="-3" frameY="-13" frameWidth="1978" frameHeight="674"/>
<SubTexture name="Bottom Level Boppers0001" x="0" y="0" width="1975" height="661" frameX="-3" frameY="-13" frameWidth="1978" frameHeight="674"/>
<SubTexture name="Bottom Level Boppers0002" x="1985" y="0" width="1972" height="664" frameX="-4" frameY="-10" frameWidth="1978" frameHeight="674"/>
<SubTexture name="Bottom Level Boppers0003" x="1985" y="0" width="1972" height="664" frameX="-4" frameY="-10" frameWidth="1978" frameHeight="674"/>
<SubTexture name="Bottom Level Boppers0004" x="0" y="674" width="1973" height="672" frameX="0" frameY="-2" frameWidth="1978" frameHeight="674"/>
<SubTexture name="Bottom Level Boppers0005" x="0" y="674" width="1973" height="672" frameX="0" frameY="-2" frameWidth="1978" frameHeight="674"/>
<SubTexture name="Bottom Level Boppers0006" x="1983" y="674" width="1973" height="674" frameX="0" frameY="0" frameWidth="1978" frameHeight="674"/>
<SubTexture name="Bottom Level Boppers0007" x="1983" y="674" width="1973" height="674" frameX="0" frameY="0" frameWidth="1978" frameHeight="674"/>
<SubTexture name="Bottom Level Boppers0008" x="1983" y="674" width="1973" height="674" frameX="0" frameY="0" frameWidth="1978" frameHeight="674"/>
<SubTexture name="Bottom Level Boppers0009" x="1983" y="674" width="1973" height="674" frameX="0" frameY="0" frameWidth="1978" frameHeight="674"/>
<SubTexture name="Bottom Level Boppers0010" x="1983" y="674" width="1973" height="674" frameX="0" frameY="0" frameWidth="1978" frameHeight="674"/>
<SubTexture name="Bottom Level Boppers0011" x="1983" y="674" width="1973" height="674" frameX="0" frameY="0" frameWidth="1978" frameHeight="674"/>
<SubTexture name="Bottom Level Boppers0012" x="1983" y="674" width="1973" height="674" frameX="0" frameY="0" frameWidth="1978" frameHeight="674"/>
<SubTexture name="Bottom Level Boppers0013" x="1983" y="674" width="1973" height="674" frameX="0" frameY="0" frameWidth="1978" frameHeight="674"/>
</TextureAtlas>
Binary file added assets/images/christmas/christmasTree.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/christmas/christmasWall.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/christmas/fgSnow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/christmas/gfChristmas.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
227 changes: 227 additions & 0 deletions assets/images/christmas/gfChristmas.xml

Large diffs are not rendered by default.

Binary file added assets/images/christmas/upperBop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions assets/images/christmas/upperBop.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<TextureAtlas imagePath="upperBop.png">
<!-- Created with Adobe Animate version 20.0.0.17400 -->
<!-- http://www.adobe.com/products/animate.html -->
<SubTexture name="Upper Crowd Bob0000" x="0" y="0" width="2247" height="291" frameX="0" frameY="-16" frameWidth="2247" frameHeight="307"/>
<SubTexture name="Upper Crowd Bob0001" x="0" y="0" width="2247" height="291" frameX="0" frameY="-16" frameWidth="2247" frameHeight="307"/>
<SubTexture name="Upper Crowd Bob0002" x="0" y="301" width="2237" height="297" frameX="-5" frameY="-10" frameWidth="2247" frameHeight="307"/>
<SubTexture name="Upper Crowd Bob0003" x="0" y="301" width="2237" height="297" frameX="-5" frameY="-10" frameWidth="2247" frameHeight="307"/>
<SubTexture name="Upper Crowd Bob0004" x="0" y="608" width="2235" height="304" frameX="-6" frameY="-3" frameWidth="2247" frameHeight="307"/>
<SubTexture name="Upper Crowd Bob0005" x="0" y="608" width="2235" height="304" frameX="-6" frameY="-3" frameWidth="2247" frameHeight="307"/>
<SubTexture name="Upper Crowd Bob0006" x="0" y="922" width="2231" height="307" frameX="-8" frameY="0" frameWidth="2247" frameHeight="307"/>
<SubTexture name="Upper Crowd Bob0007" x="0" y="922" width="2231" height="307" frameX="-8" frameY="0" frameWidth="2247" frameHeight="307"/>
<SubTexture name="Upper Crowd Bob0008" x="0" y="922" width="2231" height="307" frameX="-8" frameY="0" frameWidth="2247" frameHeight="307"/>
<SubTexture name="Upper Crowd Bob0009" x="0" y="922" width="2231" height="307" frameX="-8" frameY="0" frameWidth="2247" frameHeight="307"/>
<SubTexture name="Upper Crowd Bob0010" x="0" y="922" width="2231" height="307" frameX="-8" frameY="0" frameWidth="2247" frameHeight="307"/>
<SubTexture name="Upper Crowd Bob0011" x="0" y="922" width="2231" height="307" frameX="-8" frameY="0" frameWidth="2247" frameHeight="307"/>
<SubTexture name="Upper Crowd Bob0012" x="0" y="922" width="2231" height="307" frameX="-8" frameY="0" frameWidth="2247" frameHeight="307"/>
</TextureAtlas>
Binary file removed assets/music/Dadbattle.mp3
Binary file not shown.
Binary file removed assets/music/Dadbattle.ogg
Binary file not shown.
Binary file added assets/music/Test_Inst.mp3
Binary file not shown.
Binary file added assets/music/Test_Inst.ogg
Binary file not shown.
Binary file added assets/music/Test_Voices.mp3
Binary file not shown.
Binary file added assets/music/Test_Voices.ogg
Binary file not shown.
Binary file added assets/sounds/Lights_Shut_off.mp3
Binary file not shown.
Binary file added assets/sounds/Lights_Shut_off.ogg
Binary file not shown.
Binary file added assets/sounds/Lights_Turn_On.mp3
Binary file not shown.
Binary file added assets/sounds/Lights_Turn_On.ogg
Binary file not shown.
42 changes: 42 additions & 0 deletions source/Character.hx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,37 @@ class Character extends FlxSprite

playAnim('danceRight');

case 'gf-christmas':
tex = FlxAtlasFrames.fromSparrow('assets/images/christmas/gfChristmas.png', 'assets/images/christmas/gfChristmas.xml');
frames = tex;
animation.addByPrefix('cheer', 'GF Cheer', 24, false);
animation.addByPrefix('singLEFT', 'GF left note', 24, false);
animation.addByPrefix('singRIGHT', 'GF Right Note', 24, false);
animation.addByPrefix('singUP', 'GF Up Note', 24, false);
animation.addByPrefix('singDOWN', 'GF Down Note', 24, false);
animation.addByIndices('sad', 'gf sad', [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "", 24, false);
animation.addByIndices('danceLeft', 'GF Dancing Beat', [30, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "", 24, false);
animation.addByIndices('danceRight', 'GF Dancing Beat', [15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29], "", 24, false);
animation.addByIndices('hairBlow', "GF Dancing Beat Hair blowing", [0, 1, 2, 3], "", 24);
animation.addByIndices('hairFall', "GF Dancing Beat Hair Landing", [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "", 24, false);
animation.addByPrefix('scared', 'GF FEAR', 24);

addOffset('cheer');
addOffset('sad', -2, -2);
addOffset('danceLeft', 0, -9);
addOffset('danceRight', 0, -9);

addOffset("singUP", 0, 4);
addOffset("singRIGHT", 0, -20);
addOffset("singLEFT", 0, -19);
addOffset("singDOWN", 0, -20);
addOffset('hairBlow', 45, -8);
addOffset('hairFall', 0, -9);

addOffset('scared', -2, -17);

playAnim('danceRight');

case 'gf-car':
tex = FlxAtlasFrames.fromSparrow('assets/images/gfCar.png', 'assets/images/gfCar.xml');
frames = tex;
Expand Down Expand Up @@ -392,6 +423,17 @@ class Character extends FlxSprite
playAnim('danceLeft');
}

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

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

case 'gf-car':
if (!animation.curAnim.name.startsWith('hair'))
{
Expand Down
12 changes: 6 additions & 6 deletions source/ChartingState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ class ChartingState extends MusicBeatState
else
{
_song = {
song: 'Monster',
song: 'Test',
notes: [],
bpm: 95,
bpm: 150,
sections: 0,
needsVoices: false,
needsVoices: true,
player1: 'bf',
player2: 'dad',
sectionLengths: [],
Expand Down Expand Up @@ -180,8 +180,8 @@ class ChartingState extends MusicBeatState
typingShit = UI_songTitle;

var check_voices = new FlxUICheckBox(10, 25, null, null, "Has voice track", 100);
check_voices.checked = true;
_song.needsVoices = check_voices.checked;
check_voices.checked = _song.needsVoices;
// _song.needsVoices = check_voices.checked;
check_voices.callback = function()
{
_song.needsVoices = check_voices.checked;
Expand Down Expand Up @@ -360,7 +360,7 @@ class ChartingState extends MusicBeatState

FlxG.sound.playMusic('assets/music/' + daSong + "_Inst" + TitleState.soundExt, 0.6);

// WONT WORK FOR TUTORIAL! REDO LATER
// WONT WORK FOR TUTORIAL OR TEST SONG!!! REDO LATER
vocals = new FlxSound().loadEmbedded("assets/music/" + daSong + "_Voices" + TitleState.soundExt);
FlxG.sound.list.add(vocals);

Expand Down
2 changes: 1 addition & 1 deletion source/FreeplayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class FreeplayState extends MusicBeatState
{
songs.push('Cocoa');
songs.push('Eggnog');
// songs.push('Milf');
songs.push('Winter-Horrorland');
}

// LOAD MUSIC
Expand Down
76 changes: 75 additions & 1 deletion source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ class PlayState extends MusicBeatState
var grpLimoDancers:FlxTypedGroup<BackgroundDancer>;
var fastCar:FlxSprite;

var upperBoppers:FlxSprite;
var bottomBoppers:FlxSprite;

var talking:Bool = true;
var songScore:Int = 0;
var scoreTxt:FlxText;
Expand Down Expand Up @@ -247,6 +250,54 @@ class PlayState extends MusicBeatState
fastCar = new FlxSprite(-300, 160).loadGraphic('assets/images/limo/fastCarLol.png');
// add(limo);
}
else if (SONG.song.toLowerCase() == 'cocoa' || SONG.song.toLowerCase() == 'eggnog')
{
curStage = 'mall';

var bg:FlxSprite = new FlxSprite(-1000, -400).loadGraphic('assets/images/christmas/bgWalls.png');
bg.antialiasing = true;
bg.scrollFactor.set(0.2, 0.2);
bg.active = false;
bg.setGraphicSize(Std.int(bg.width * 0.8));
bg.updateHitbox();
add(bg);

upperBoppers = new FlxSprite(-130, 40);
upperBoppers.frames = FlxAtlasFrames.fromSparrow('assets/images/christmas/upperBop.png', 'assets/images/christmas/upperBop.xml');
upperBoppers.animation.addByPrefix('bop', "Upper Crowd Bob", 24, false);
upperBoppers.antialiasing = true;
upperBoppers.scrollFactor.set(0.33, 0.33);
upperBoppers.setGraphicSize(Std.int(upperBoppers.width * 0.7));
upperBoppers.updateHitbox();
add(upperBoppers);

var bgEscalator:FlxSprite = new FlxSprite(-1000, -430).loadGraphic('assets/images/christmas/bgEscalator.png');
bgEscalator.antialiasing = true;
bgEscalator.scrollFactor.set(0.3, 0.3);
bgEscalator.active = false;
bgEscalator.setGraphicSize(Std.int(bgEscalator.width * 0.8));
bgEscalator.updateHitbox();
add(bgEscalator);

var fgSnow:FlxSprite = new FlxSprite(-400, 700).loadGraphic('assets/images/christmas/fgSnow.png');
fgSnow.active = false;
fgSnow.antialiasing = true;
add(fgSnow);

var tree:FlxSprite = new FlxSprite(300, -250).loadGraphic('assets/images/christmas/christmasTree.png');
tree.antialiasing = true;
tree.scrollFactor.set(0.85, 0.85);
add(tree);

bottomBoppers = new FlxSprite(-280, 220);
bottomBoppers.frames = FlxAtlasFrames.fromSparrow('assets/images/christmas/bottomBop.png', 'assets/images/christmas/bottomBop.xml');
bottomBoppers.animation.addByPrefix('bop', 'Bottom Level Boppers', 24, false);
bottomBoppers.antialiasing = true;
bottomBoppers.scrollFactor.set(0.9, 0.9);
bottomBoppers.setGraphicSize(Std.int(bottomBoppers.width * 0.9));
bottomBoppers.updateHitbox();
add(bottomBoppers);
}
else
{
curStage = 'stage';
Expand Down Expand Up @@ -278,6 +329,14 @@ class PlayState extends MusicBeatState

var gfVersion:String = 'gf';

switch (curStage)
{
case 'limo':
gfVersion = 'gf-car';
case 'mall':
gfVersion = 'gf-christmas';
}

if (curStage == 'limo')
gfVersion = 'gf-car';

Expand Down Expand Up @@ -315,6 +374,8 @@ class PlayState extends MusicBeatState
case 'pico':
camPos.x += 600;
dad.y += 300;
case 'parents-christmas':
dad.x -= 500;
}

boyfriend = new Boyfriend(770, 450, SONG.player1);
Expand Down Expand Up @@ -1302,8 +1363,17 @@ class PlayState extends MusicBeatState
}
}
}
else
else if (possibleNotes[0].noteData == possibleNotes[1].noteData)
{
noteCheck(controlArray[daNote.noteData], daNote);
}
else
{
for (coolNote in possibleNotes)
{
noteCheck(controlArray[coolNote.noteData], coolNote);
}
}
}
else // regular notes?
{
Expand Down Expand Up @@ -1700,6 +1770,10 @@ class PlayState extends MusicBeatState

switch (curStage)
{
case 'mall':
upperBoppers.animation.play('bop', true);
bottomBoppers.animation.play('bop', true);

case 'limo':
grpLimoDancers.forEach(function(dancer:BackgroundDancer)
{
Expand Down

0 comments on commit d2509f0

Please sign in to comment.