swagshit money money
swagshit money money
This commit is contained in:
44 files changed
+90
-127
No files matched your search
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+20
-20
@@ -32,7 +32,7 @@ class Character extends FlxSprite
|
|||||||
{
|
{
|
||||||
case 'gf':
|
case 'gf':
|
||||||
// GIRLFRIEND CODE
|
// GIRLFRIEND CODE
|
||||||
tex = Paths.getSparrowAtlas('GF_assets');
|
tex = Paths.getSparrowAtlas('characters/GF_assets');
|
||||||
frames = tex;
|
frames = tex;
|
||||||
animation.addByPrefix('cheer', 'GF Cheer', 24, false);
|
animation.addByPrefix('cheer', 'GF Cheer', 24, false);
|
||||||
animation.addByPrefix('singLEFT', 'GF left note', 24, false);
|
animation.addByPrefix('singLEFT', 'GF left note', 24, false);
|
||||||
@@ -63,7 +63,7 @@ class Character extends FlxSprite
|
|||||||
playAnim('danceRight');
|
playAnim('danceRight');
|
||||||
|
|
||||||
case 'gf-christmas':
|
case 'gf-christmas':
|
||||||
tex = Paths.getSparrowAtlas('christmas/gfChristmas','week5');
|
tex = Paths.getSparrowAtlas('characters/gfChristmas');
|
||||||
frames = tex;
|
frames = tex;
|
||||||
animation.addByPrefix('cheer', 'GF Cheer', 24, false);
|
animation.addByPrefix('cheer', 'GF Cheer', 24, false);
|
||||||
animation.addByPrefix('singLEFT', 'GF left note', 24, false);
|
animation.addByPrefix('singLEFT', 'GF left note', 24, false);
|
||||||
@@ -94,7 +94,7 @@ class Character extends FlxSprite
|
|||||||
playAnim('danceRight');
|
playAnim('danceRight');
|
||||||
|
|
||||||
case 'gf-car':
|
case 'gf-car':
|
||||||
tex = Paths.getSparrowAtlas('gfCar','week4');
|
tex = Paths.getSparrowAtlas('characters/gfCar');
|
||||||
frames = tex;
|
frames = tex;
|
||||||
animation.addByIndices('singUP', 'GF Dancing Beat Hair blowing CAR', [0], "", 24, false);
|
animation.addByIndices('singUP', 'GF Dancing Beat Hair blowing CAR', [0], "", 24, false);
|
||||||
animation.addByIndices('danceLeft', 'GF Dancing Beat Hair blowing CAR', [30, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "", 24, false);
|
animation.addByIndices('danceLeft', 'GF Dancing Beat Hair blowing CAR', [30, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "", 24, false);
|
||||||
@@ -107,7 +107,7 @@ class Character extends FlxSprite
|
|||||||
playAnim('danceRight');
|
playAnim('danceRight');
|
||||||
|
|
||||||
case 'gf-pixel':
|
case 'gf-pixel':
|
||||||
tex = Paths.getSparrowAtlas('weeb/gfPixel','week6');
|
tex = Paths.getSparrowAtlas('characters/gfPixel');
|
||||||
frames = tex;
|
frames = tex;
|
||||||
animation.addByIndices('singUP', 'GF IDLE', [2], "", 24, false);
|
animation.addByIndices('singUP', 'GF IDLE', [2], "", 24, false);
|
||||||
animation.addByIndices('danceLeft', 'GF IDLE', [30, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "", 24, false);
|
animation.addByIndices('danceLeft', 'GF IDLE', [30, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "", 24, false);
|
||||||
@@ -124,7 +124,7 @@ class Character extends FlxSprite
|
|||||||
|
|
||||||
case 'dad':
|
case 'dad':
|
||||||
// DAD ANIMATION LOADING CODE
|
// DAD ANIMATION LOADING CODE
|
||||||
tex = Paths.getSparrowAtlas('DADDY_DEAREST','shared');
|
tex = Paths.getSparrowAtlas('characters/DADDY_DEAREST');
|
||||||
frames = tex;
|
frames = tex;
|
||||||
animation.addByPrefix('idle', 'Dad idle dance', 24);
|
animation.addByPrefix('idle', 'Dad idle dance', 24);
|
||||||
animation.addByPrefix('singUP', 'Dad Sing Note UP', 24);
|
animation.addByPrefix('singUP', 'Dad Sing Note UP', 24);
|
||||||
@@ -140,7 +140,7 @@ class Character extends FlxSprite
|
|||||||
|
|
||||||
playAnim('idle');
|
playAnim('idle');
|
||||||
case 'spooky':
|
case 'spooky':
|
||||||
tex = Paths.getSparrowAtlas('spooky_kids_assets','week2');
|
tex = Paths.getSparrowAtlas('characters/spooky_kids_assets');
|
||||||
frames = tex;
|
frames = tex;
|
||||||
animation.addByPrefix('singUP', 'spooky UP NOTE', 24, false);
|
animation.addByPrefix('singUP', 'spooky UP NOTE', 24, false);
|
||||||
animation.addByPrefix('singDOWN', 'spooky DOWN note', 24, false);
|
animation.addByPrefix('singDOWN', 'spooky DOWN note', 24, false);
|
||||||
@@ -159,7 +159,7 @@ class Character extends FlxSprite
|
|||||||
|
|
||||||
playAnim('danceRight');
|
playAnim('danceRight');
|
||||||
case 'mom':
|
case 'mom':
|
||||||
tex = Paths.getSparrowAtlas('Mom_Assets','week4');
|
tex = Paths.getSparrowAtlas('characters/Mom_Assets');
|
||||||
frames = tex;
|
frames = tex;
|
||||||
|
|
||||||
animation.addByPrefix('idle', "Mom Idle", 24, false);
|
animation.addByPrefix('idle', "Mom Idle", 24, false);
|
||||||
@@ -179,7 +179,7 @@ class Character extends FlxSprite
|
|||||||
playAnim('idle');
|
playAnim('idle');
|
||||||
|
|
||||||
case 'mom-car':
|
case 'mom-car':
|
||||||
tex = Paths.getSparrowAtlas('momCar','week4');
|
tex = Paths.getSparrowAtlas('characters/momCar');
|
||||||
frames = tex;
|
frames = tex;
|
||||||
|
|
||||||
animation.addByPrefix('idle', "Mom Idle", 24, false);
|
animation.addByPrefix('idle', "Mom Idle", 24, false);
|
||||||
@@ -198,7 +198,7 @@ class Character extends FlxSprite
|
|||||||
|
|
||||||
playAnim('idle');
|
playAnim('idle');
|
||||||
case 'monster':
|
case 'monster':
|
||||||
tex = Paths.getSparrowAtlas('Monster_Assets','week2');
|
tex = Paths.getSparrowAtlas('characters/Monster_Assets');
|
||||||
frames = tex;
|
frames = tex;
|
||||||
animation.addByPrefix('idle', 'monster idle', 24, false);
|
animation.addByPrefix('idle', 'monster idle', 24, false);
|
||||||
animation.addByPrefix('singUP', 'monster up note', 24, false);
|
animation.addByPrefix('singUP', 'monster up note', 24, false);
|
||||||
@@ -213,7 +213,7 @@ class Character extends FlxSprite
|
|||||||
addOffset("singDOWN", -30, -40);
|
addOffset("singDOWN", -30, -40);
|
||||||
playAnim('idle');
|
playAnim('idle');
|
||||||
case 'monster-christmas':
|
case 'monster-christmas':
|
||||||
tex = Paths.getSparrowAtlas('christmas/monsterChristmas','week5');
|
tex = Paths.getSparrowAtlas('characters/monsterChristmas');
|
||||||
frames = tex;
|
frames = tex;
|
||||||
animation.addByPrefix('idle', 'monster idle', 24, false);
|
animation.addByPrefix('idle', 'monster idle', 24, false);
|
||||||
animation.addByPrefix('singUP', 'monster up note', 24, false);
|
animation.addByPrefix('singUP', 'monster up note', 24, false);
|
||||||
@@ -228,7 +228,7 @@ class Character extends FlxSprite
|
|||||||
addOffset("singDOWN", -40, -94);
|
addOffset("singDOWN", -40, -94);
|
||||||
playAnim('idle');
|
playAnim('idle');
|
||||||
case 'pico':
|
case 'pico':
|
||||||
tex = Paths.getSparrowAtlas('Pico_FNF_assetss','week3');
|
tex = Paths.getSparrowAtlas('characters/Pico_FNF_assetss');
|
||||||
frames = tex;
|
frames = tex;
|
||||||
animation.addByPrefix('idle', "Pico Idle Dance", 24);
|
animation.addByPrefix('idle', "Pico Idle Dance", 24);
|
||||||
animation.addByPrefix('singUP', 'pico Up note0', 24, false);
|
animation.addByPrefix('singUP', 'pico Up note0', 24, false);
|
||||||
@@ -267,7 +267,7 @@ class Character extends FlxSprite
|
|||||||
flipX = true;
|
flipX = true;
|
||||||
|
|
||||||
case 'bf':
|
case 'bf':
|
||||||
var tex = Paths.getSparrowAtlas('BOYFRIEND','shared');
|
var tex = Paths.getSparrowAtlas('characters/BOYFRIEND');
|
||||||
frames = tex;
|
frames = tex;
|
||||||
animation.addByPrefix('idle', 'BF idle dance', 24, false);
|
animation.addByPrefix('idle', 'BF idle dance', 24, false);
|
||||||
animation.addByPrefix('singUP', 'BF NOTE UP0', 24, false);
|
animation.addByPrefix('singUP', 'BF NOTE UP0', 24, false);
|
||||||
@@ -306,7 +306,7 @@ class Character extends FlxSprite
|
|||||||
flipX = true;
|
flipX = true;
|
||||||
|
|
||||||
case 'bf-christmas':
|
case 'bf-christmas':
|
||||||
var tex = Paths.getSparrowAtlas('christmas/bfChristmas','week5');
|
var tex = Paths.getSparrowAtlas('characters/bfChristmas');
|
||||||
frames = tex;
|
frames = tex;
|
||||||
animation.addByPrefix('idle', 'BF idle dance', 24, false);
|
animation.addByPrefix('idle', 'BF idle dance', 24, false);
|
||||||
animation.addByPrefix('singUP', 'BF NOTE UP0', 24, false);
|
animation.addByPrefix('singUP', 'BF NOTE UP0', 24, false);
|
||||||
@@ -334,7 +334,7 @@ class Character extends FlxSprite
|
|||||||
|
|
||||||
flipX = true;
|
flipX = true;
|
||||||
case 'bf-car':
|
case 'bf-car':
|
||||||
var tex = Paths.getSparrowAtlas('bfCar','week4');
|
var tex = Paths.getSparrowAtlas('characters/bfCar');
|
||||||
frames = tex;
|
frames = tex;
|
||||||
animation.addByPrefix('idle', 'BF idle dance', 24, false);
|
animation.addByPrefix('idle', 'BF idle dance', 24, false);
|
||||||
animation.addByPrefix('singUP', 'BF NOTE UP0', 24, false);
|
animation.addByPrefix('singUP', 'BF NOTE UP0', 24, false);
|
||||||
@@ -359,7 +359,7 @@ class Character extends FlxSprite
|
|||||||
|
|
||||||
flipX = true;
|
flipX = true;
|
||||||
case 'bf-pixel':
|
case 'bf-pixel':
|
||||||
frames = Paths.getSparrowAtlas('weeb/bfPixel','week6');
|
frames = Paths.getSparrowAtlas('characters/bfPixel');
|
||||||
animation.addByPrefix('idle', 'BF IDLE', 24, false);
|
animation.addByPrefix('idle', 'BF IDLE', 24, false);
|
||||||
animation.addByPrefix('singUP', 'BF UP NOTE', 24, false);
|
animation.addByPrefix('singUP', 'BF UP NOTE', 24, false);
|
||||||
animation.addByPrefix('singLEFT', 'BF LEFT NOTE', 24, false);
|
animation.addByPrefix('singLEFT', 'BF LEFT NOTE', 24, false);
|
||||||
@@ -392,7 +392,7 @@ class Character extends FlxSprite
|
|||||||
|
|
||||||
flipX = true;
|
flipX = true;
|
||||||
case 'bf-pixel-dead':
|
case 'bf-pixel-dead':
|
||||||
frames = Paths.getSparrowAtlas('weeb/bfPixelsDEAD','week6');
|
frames = Paths.getSparrowAtlas('characters/bfPixelsDEAD');
|
||||||
animation.addByPrefix('singUP', "BF Dies pixel", 24, false);
|
animation.addByPrefix('singUP', "BF Dies pixel", 24, false);
|
||||||
animation.addByPrefix('firstDeath', "BF Dies pixel", 24, false);
|
animation.addByPrefix('firstDeath', "BF Dies pixel", 24, false);
|
||||||
animation.addByPrefix('deathLoop', "Retry Loop", 24, true);
|
animation.addByPrefix('deathLoop', "Retry Loop", 24, true);
|
||||||
@@ -410,7 +410,7 @@ class Character extends FlxSprite
|
|||||||
flipX = true;
|
flipX = true;
|
||||||
|
|
||||||
case 'senpai':
|
case 'senpai':
|
||||||
frames = Paths.getSparrowAtlas('weeb/senpai','week6');
|
frames = Paths.getSparrowAtlas('characters/senpai');
|
||||||
animation.addByPrefix('idle', 'Senpai Idle', 24, false);
|
animation.addByPrefix('idle', 'Senpai Idle', 24, false);
|
||||||
animation.addByPrefix('singUP', 'SENPAI UP NOTE', 24, false);
|
animation.addByPrefix('singUP', 'SENPAI UP NOTE', 24, false);
|
||||||
animation.addByPrefix('singLEFT', 'SENPAI LEFT NOTE', 24, false);
|
animation.addByPrefix('singLEFT', 'SENPAI LEFT NOTE', 24, false);
|
||||||
@@ -430,7 +430,7 @@ class Character extends FlxSprite
|
|||||||
|
|
||||||
antialiasing = false;
|
antialiasing = false;
|
||||||
case 'senpai-angry':
|
case 'senpai-angry':
|
||||||
frames = Paths.getSparrowAtlas('weeb/senpai','week6');
|
frames = Paths.getSparrowAtlas('characters/senpai');
|
||||||
animation.addByPrefix('idle', 'Angry Senpai Idle', 24, false);
|
animation.addByPrefix('idle', 'Angry Senpai Idle', 24, false);
|
||||||
animation.addByPrefix('singUP', 'Angry Senpai UP NOTE', 24, false);
|
animation.addByPrefix('singUP', 'Angry Senpai UP NOTE', 24, false);
|
||||||
animation.addByPrefix('singLEFT', 'Angry Senpai LEFT NOTE', 24, false);
|
animation.addByPrefix('singLEFT', 'Angry Senpai LEFT NOTE', 24, false);
|
||||||
@@ -450,7 +450,7 @@ class Character extends FlxSprite
|
|||||||
antialiasing = false;
|
antialiasing = false;
|
||||||
|
|
||||||
case 'spirit':
|
case 'spirit':
|
||||||
frames = Paths.getPackerAtlas('weeb/spirit','week6');
|
frames = Paths.getPackerAtlas('characters/spirit');
|
||||||
animation.addByPrefix('idle', "idle spirit_", 24, false);
|
animation.addByPrefix('idle', "idle spirit_", 24, false);
|
||||||
animation.addByPrefix('singUP', "up_", 24, false);
|
animation.addByPrefix('singUP', "up_", 24, false);
|
||||||
animation.addByPrefix('singRIGHT', "right_", 24, false);
|
animation.addByPrefix('singRIGHT', "right_", 24, false);
|
||||||
@@ -471,7 +471,7 @@ class Character extends FlxSprite
|
|||||||
antialiasing = false;
|
antialiasing = false;
|
||||||
|
|
||||||
case 'parents-christmas':
|
case 'parents-christmas':
|
||||||
frames = Paths.getSparrowAtlas('christmas/mom_dad_christmas_assets','week5');
|
frames = Paths.getSparrowAtlas('characters/mom_dad_christmas_assets');
|
||||||
animation.addByPrefix('idle', 'Parent Christmas Idle', 24, false);
|
animation.addByPrefix('idle', 'Parent Christmas Idle', 24, false);
|
||||||
animation.addByPrefix('singUP', 'Parent Up Note Dad', 24, false);
|
animation.addByPrefix('singUP', 'Parent Up Note Dad', 24, false);
|
||||||
animation.addByPrefix('singDOWN', 'Parent Down Note Dad', 24, false);
|
animation.addByPrefix('singDOWN', 'Parent Down Note Dad', 24, false);
|
||||||
|
|||||||
+26
-37
@@ -88,12 +88,8 @@ class ChartingState extends MusicBeatState
|
|||||||
var leftIcon:HealthIcon;
|
var leftIcon:HealthIcon;
|
||||||
var rightIcon:HealthIcon;
|
var rightIcon:HealthIcon;
|
||||||
|
|
||||||
var leftIconChar:String;
|
|
||||||
var rightIconChar:String;
|
|
||||||
|
|
||||||
private var lastNote:Note;
|
private var lastNote:Note;
|
||||||
|
|
||||||
|
|
||||||
override function create()
|
override function create()
|
||||||
{
|
{
|
||||||
curSection = lastSection;
|
curSection = lastSection;
|
||||||
@@ -119,21 +115,6 @@ class ChartingState extends MusicBeatState
|
|||||||
|
|
||||||
gridBG = FlxGridOverlay.create(GRID_SIZE, GRID_SIZE, GRID_SIZE * 8, GRID_SIZE * 16);
|
gridBG = FlxGridOverlay.create(GRID_SIZE, GRID_SIZE, GRID_SIZE * 8, GRID_SIZE * 16);
|
||||||
add(gridBG);
|
add(gridBG);
|
||||||
leftIconChar = _song.player1;
|
|
||||||
rightIconChar = _song.player2;
|
|
||||||
leftIcon = new HealthIcon(leftIconChar);
|
|
||||||
rightIcon = new HealthIcon(rightIconChar);
|
|
||||||
leftIcon.scrollFactor.set(1, 1);
|
|
||||||
rightIcon.scrollFactor.set(1, 1);
|
|
||||||
|
|
||||||
leftIcon.setGraphicSize(0, 45);
|
|
||||||
rightIcon.setGraphicSize(0, 45);
|
|
||||||
|
|
||||||
add(leftIcon);
|
|
||||||
add(rightIcon);
|
|
||||||
|
|
||||||
leftIcon.setPosition(0, -100);
|
|
||||||
rightIcon.setPosition(gridBG.width / 2, -100);
|
|
||||||
|
|
||||||
gridBlackLine = new FlxSprite(gridBG.x + gridBG.width / 2).makeGraphic(2, Std.int(gridBG.height), FlxColor.BLACK);
|
gridBlackLine = new FlxSprite(gridBG.x + gridBG.width / 2).makeGraphic(2, Std.int(gridBG.height), FlxColor.BLACK);
|
||||||
add(gridBlackLine);
|
add(gridBlackLine);
|
||||||
@@ -156,6 +137,20 @@ class ChartingState extends MusicBeatState
|
|||||||
Conductor.changeBPM(_song.bpm);
|
Conductor.changeBPM(_song.bpm);
|
||||||
Conductor.mapBPMChanges(_song);
|
Conductor.mapBPMChanges(_song);
|
||||||
|
|
||||||
|
leftIcon = new HealthIcon(_song.player1);
|
||||||
|
rightIcon = new HealthIcon(_song.player2);
|
||||||
|
leftIcon.scrollFactor.set(1, 1);
|
||||||
|
rightIcon.scrollFactor.set(1, 1);
|
||||||
|
|
||||||
|
leftIcon.setGraphicSize(0, 45);
|
||||||
|
rightIcon.setGraphicSize(0, 45);
|
||||||
|
|
||||||
|
add(leftIcon);
|
||||||
|
add(rightIcon);
|
||||||
|
|
||||||
|
leftIcon.setPosition(0, -100);
|
||||||
|
rightIcon.setPosition(gridBG.width / 2, -100);
|
||||||
|
|
||||||
bpmTxt = new FlxText(1000, 50, 0, "", 16);
|
bpmTxt = new FlxText(1000, 50, 0, "", 16);
|
||||||
bpmTxt.scrollFactor.set();
|
bpmTxt.scrollFactor.set();
|
||||||
add(bpmTxt);
|
add(bpmTxt);
|
||||||
@@ -305,14 +300,11 @@ class ChartingState extends MusicBeatState
|
|||||||
|
|
||||||
var tab_group_assets = new FlxUI(null, UI_box);
|
var tab_group_assets = new FlxUI(null, UI_box);
|
||||||
tab_group_assets.name = "Assets";
|
tab_group_assets.name = "Assets";
|
||||||
tab_group_assets.add(player1DropDown);
|
tab_group_assets.add(noteStyleDropDown);
|
||||||
tab_group_assets.add(player2DropDown);
|
|
||||||
tab_group_assets.add(gfVersionDropDown);
|
tab_group_assets.add(gfVersionDropDown);
|
||||||
tab_group_assets.add(stageDropDown);
|
tab_group_assets.add(stageDropDown);
|
||||||
tab_group_assets.add(noteStyleDropDown);
|
tab_group_assets.add(player1DropDown);
|
||||||
|
tab_group_assets.add(player2DropDown);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
UI_box.addGroup(tab_group_song);
|
UI_box.addGroup(tab_group_song);
|
||||||
UI_box.addGroup(tab_group_assets);
|
UI_box.addGroup(tab_group_assets);
|
||||||
@@ -477,9 +469,6 @@ class ChartingState extends MusicBeatState
|
|||||||
{
|
{
|
||||||
case 'Must hit section':
|
case 'Must hit section':
|
||||||
_song.notes[curSection].mustHitSection = check.checked;
|
_song.notes[curSection].mustHitSection = check.checked;
|
||||||
|
|
||||||
updateHeads();
|
|
||||||
|
|
||||||
case 'Change BPM':
|
case 'Change BPM':
|
||||||
_song.notes[curSection].changeBPM = check.checked;
|
_song.notes[curSection].changeBPM = check.checked;
|
||||||
FlxG.log.add('changed bpm shit');
|
FlxG.log.add('changed bpm shit');
|
||||||
@@ -564,6 +553,8 @@ class ChartingState extends MusicBeatState
|
|||||||
|
|
||||||
override function update(elapsed:Float)
|
override function update(elapsed:Float)
|
||||||
{
|
{
|
||||||
|
updateHeads();
|
||||||
|
|
||||||
curStep = recalculateSteps();
|
curStep = recalculateSteps();
|
||||||
|
|
||||||
if (FlxG.keys.justPressed.ALT && UI_box.selected_tab == 0)
|
if (FlxG.keys.justPressed.ALT && UI_box.selected_tab == 0)
|
||||||
@@ -752,7 +743,7 @@ class ChartingState extends MusicBeatState
|
|||||||
PlayState.SONG = _song;
|
PlayState.SONG = _song;
|
||||||
FlxG.sound.music.stop();
|
FlxG.sound.music.stop();
|
||||||
vocals.stop();
|
vocals.stop();
|
||||||
FlxG.switchState(new PlayState());
|
LoadingState.loadAndSwitchState(new PlayState());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FlxG.keys.justPressed.E)
|
if (FlxG.keys.justPressed.E)
|
||||||
@@ -1022,21 +1013,19 @@ class ChartingState extends MusicBeatState
|
|||||||
check_altAnim.checked = sec.altAnim;
|
check_altAnim.checked = sec.altAnim;
|
||||||
check_changeBPM.checked = sec.changeBPM;
|
check_changeBPM.checked = sec.changeBPM;
|
||||||
stepperSectionBPM.value = sec.bpm;
|
stepperSectionBPM.value = sec.bpm;
|
||||||
|
|
||||||
updateHeads();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateHeads():Void
|
function updateHeads():Void
|
||||||
{
|
{
|
||||||
if (check_mustHitSection.checked)
|
if (check_mustHitSection.checked)
|
||||||
{
|
{
|
||||||
leftIcon.animation.play(leftIconChar);
|
leftIcon.animation.play(_song.player1);
|
||||||
rightIcon.animation.play(rightIconChar);
|
rightIcon.animation.play(_song.player2);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
leftIcon.animation.play(rightIconChar);
|
leftIcon.animation.play(_song.player2);
|
||||||
rightIcon.animation.play(leftIconChar);
|
rightIcon.animation.play(_song.player1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1266,13 +1255,13 @@ class ChartingState extends MusicBeatState
|
|||||||
function loadJson(song:String):Void
|
function loadJson(song:String):Void
|
||||||
{
|
{
|
||||||
PlayState.SONG = Song.loadFromJson(song.toLowerCase(), song.toLowerCase());
|
PlayState.SONG = Song.loadFromJson(song.toLowerCase(), song.toLowerCase());
|
||||||
FlxG.resetState();
|
LoadingState.loadAndSwitchState(new ChartingState());
|
||||||
}
|
}
|
||||||
|
|
||||||
function loadAutosave():Void
|
function loadAutosave():Void
|
||||||
{
|
{
|
||||||
PlayState.SONG = Song.parseJSONshit(FlxG.save.data.autosave);
|
PlayState.SONG = Song.parseJSONshit(FlxG.save.data.autosave);
|
||||||
FlxG.resetState();
|
LoadingState.loadAndSwitchState(new ChartingState());
|
||||||
}
|
}
|
||||||
|
|
||||||
function autosaveSong():Void
|
function autosaveSong():Void
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ class HealthIcon extends FlxSprite
|
|||||||
|
|
||||||
loadGraphic(Paths.image('iconGrid'), true, 150, 150);
|
loadGraphic(Paths.image('iconGrid'), true, 150, 150);
|
||||||
|
|
||||||
|
antialiasing = true;
|
||||||
animation.add('bf', [0, 1], 0, false, isPlayer);
|
animation.add('bf', [0, 1], 0, false, isPlayer);
|
||||||
animation.add('bf-car', [0, 1], 0, false, isPlayer);
|
animation.add('bf-car', [0, 1], 0, false, isPlayer);
|
||||||
animation.add('bf-christmas', [0, 1], 0, false, isPlayer);
|
animation.add('bf-christmas', [0, 1], 0, false, isPlayer);
|
||||||
@@ -38,16 +38,13 @@ class HealthIcon extends FlxSprite
|
|||||||
animation.add('monster', [19, 20], 0, false, isPlayer);
|
animation.add('monster', [19, 20], 0, false, isPlayer);
|
||||||
animation.add('monster-christmas', [19, 20], 0, false, isPlayer);
|
animation.add('monster-christmas', [19, 20], 0, false, isPlayer);
|
||||||
animation.play(char);
|
animation.play(char);
|
||||||
switch(char){
|
|
||||||
case 'bf-pixel' | 'senpai' | 'senpai-angry' | 'spirit' | 'gf-pixel':
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
switch(char)
|
||||||
default:
|
{
|
||||||
{
|
case 'bf-pixel' | 'senpai' | 'senpai-angry' | 'spirit' | 'gf-pixel':
|
||||||
antialiasing = true;
|
antialiasing = false;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
scrollFactor.set();
|
scrollFactor.set();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// this file is for modchart things, this is to declutter playstate.hx
|
// this file is for modchart things, this is to declutter playstate.hx
|
||||||
|
|
||||||
// Lua
|
// Lua
|
||||||
|
#if windows
|
||||||
import flixel.tweens.FlxEase;
|
import flixel.tweens.FlxEase;
|
||||||
import flixel.tweens.FlxTween;
|
import flixel.tweens.FlxTween;
|
||||||
import flixel.util.FlxColor;
|
import flixel.util.FlxColor;
|
||||||
@@ -9,13 +9,10 @@ import openfl.geom.Matrix;
|
|||||||
import openfl.display.BitmapData;
|
import openfl.display.BitmapData;
|
||||||
import lime.app.Application;
|
import lime.app.Application;
|
||||||
import flixel.FlxSprite;
|
import flixel.FlxSprite;
|
||||||
#if windows
|
|
||||||
import llua.Convert;
|
import llua.Convert;
|
||||||
import llua.Lua;
|
import llua.Lua;
|
||||||
import llua.State;
|
import llua.State;
|
||||||
import llua.LuaL;
|
import llua.LuaL;
|
||||||
#end
|
|
||||||
|
|
||||||
import flixel.FlxBasic;
|
import flixel.FlxBasic;
|
||||||
import flixel.FlxCamera;
|
import flixel.FlxCamera;
|
||||||
import flixel.FlxG;
|
import flixel.FlxG;
|
||||||
@@ -23,7 +20,6 @@ import flixel.FlxG;
|
|||||||
class ModchartState
|
class ModchartState
|
||||||
{
|
{
|
||||||
|
|
||||||
#if windows
|
|
||||||
|
|
||||||
public static var lua:State = null;
|
public static var lua:State = null;
|
||||||
|
|
||||||
@@ -230,7 +226,6 @@ class ModchartState
|
|||||||
#end
|
#end
|
||||||
return toBeCalled;
|
return toBeCalled;
|
||||||
}
|
}
|
||||||
#end
|
|
||||||
|
|
||||||
public function die()
|
public function die()
|
||||||
{
|
{
|
||||||
@@ -606,3 +601,4 @@ class ModchartState
|
|||||||
return new ModchartState();
|
return new ModchartState();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#end
|
||||||
+2
-25
@@ -62,7 +62,7 @@ class Note extends FlxSprite
|
|||||||
switch (PlayState.SONG.noteStyle)
|
switch (PlayState.SONG.noteStyle)
|
||||||
{
|
{
|
||||||
case 'pixel':
|
case 'pixel':
|
||||||
loadGraphic(Paths.image('weeb/pixelUI/arrows-pixels'), true, 17, 17);
|
loadGraphic(Paths.image('weeb/pixelUI/arrows-pixels','week6'), true, 17, 17);
|
||||||
|
|
||||||
animation.add('greenScroll', [6]);
|
animation.add('greenScroll', [6]);
|
||||||
animation.add('redScroll', [7]);
|
animation.add('redScroll', [7]);
|
||||||
@@ -71,7 +71,7 @@ class Note extends FlxSprite
|
|||||||
|
|
||||||
if (isSustainNote)
|
if (isSustainNote)
|
||||||
{
|
{
|
||||||
loadGraphic(Paths.image('weeb/pixelUI/arrowEnds'), true, 7, 6);
|
loadGraphic(Paths.image('weeb/pixelUI/arrowEnds','week6'), true, 7, 6);
|
||||||
|
|
||||||
animation.add('purpleholdend', [4]);
|
animation.add('purpleholdend', [4]);
|
||||||
animation.add('greenholdend', [6]);
|
animation.add('greenholdend', [6]);
|
||||||
@@ -86,29 +86,6 @@ class Note extends FlxSprite
|
|||||||
|
|
||||||
setGraphicSize(Std.int(width * PlayState.daPixelZoom));
|
setGraphicSize(Std.int(width * PlayState.daPixelZoom));
|
||||||
updateHitbox();
|
updateHitbox();
|
||||||
|
|
||||||
case 'normal':
|
|
||||||
frames = Paths.getSparrowAtlas('NOTE_assets');
|
|
||||||
|
|
||||||
animation.addByPrefix('greenScroll', 'green0');
|
|
||||||
animation.addByPrefix('redScroll', 'red0');
|
|
||||||
animation.addByPrefix('blueScroll', 'blue0');
|
|
||||||
animation.addByPrefix('purpleScroll', 'purple0');
|
|
||||||
|
|
||||||
animation.addByPrefix('purpleholdend', 'pruple end hold');
|
|
||||||
animation.addByPrefix('greenholdend', 'green hold end');
|
|
||||||
animation.addByPrefix('redholdend', 'red hold end');
|
|
||||||
animation.addByPrefix('blueholdend', 'blue hold end');
|
|
||||||
|
|
||||||
animation.addByPrefix('purplehold', 'purple hold piece');
|
|
||||||
animation.addByPrefix('greenhold', 'green hold piece');
|
|
||||||
animation.addByPrefix('redhold', 'red hold piece');
|
|
||||||
animation.addByPrefix('bluehold', 'blue hold piece');
|
|
||||||
|
|
||||||
setGraphicSize(Std.int(width * 0.7));
|
|
||||||
updateHitbox();
|
|
||||||
antialiasing = true;
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
frames = Paths.getSparrowAtlas('NOTE_assets');
|
frames = Paths.getSparrowAtlas('NOTE_assets');
|
||||||
|
|
||||||
|
|||||||
+34
-30
@@ -335,7 +335,7 @@ class PlayState extends MusicBeatState
|
|||||||
curStage = 'spooky';
|
curStage = 'spooky';
|
||||||
halloweenLevel = true;
|
halloweenLevel = true;
|
||||||
|
|
||||||
var hallowTex = Paths.getSparrowAtlas('halloween_bg');
|
var hallowTex = Paths.getSparrowAtlas('halloween_bg','week2');
|
||||||
|
|
||||||
halloweenBG = new FlxSprite(-200, -100);
|
halloweenBG = new FlxSprite(-200, -100);
|
||||||
halloweenBG.frames = hallowTex;
|
halloweenBG.frames = hallowTex;
|
||||||
@@ -351,11 +351,11 @@ class PlayState extends MusicBeatState
|
|||||||
{
|
{
|
||||||
curStage = 'philly';
|
curStage = 'philly';
|
||||||
|
|
||||||
var bg:FlxSprite = new FlxSprite(-100).loadGraphic(Paths.image('philly/sky'));
|
var bg:FlxSprite = new FlxSprite(-100).loadGraphic(Paths.image('philly/sky', 'week3'));
|
||||||
bg.scrollFactor.set(0.1, 0.1);
|
bg.scrollFactor.set(0.1, 0.1);
|
||||||
add(bg);
|
add(bg);
|
||||||
|
|
||||||
var city:FlxSprite = new FlxSprite(-10).loadGraphic(Paths.image('philly/city'));
|
var city:FlxSprite = new FlxSprite(-10).loadGraphic(Paths.image('philly/city', 'week3'));
|
||||||
city.scrollFactor.set(0.3, 0.3);
|
city.scrollFactor.set(0.3, 0.3);
|
||||||
city.setGraphicSize(Std.int(city.width * 0.85));
|
city.setGraphicSize(Std.int(city.width * 0.85));
|
||||||
city.updateHitbox();
|
city.updateHitbox();
|
||||||
@@ -368,7 +368,7 @@ class PlayState extends MusicBeatState
|
|||||||
|
|
||||||
for (i in 0...5)
|
for (i in 0...5)
|
||||||
{
|
{
|
||||||
var light:FlxSprite = new FlxSprite(city.x).loadGraphic(Paths.image('philly/win' + i));
|
var light:FlxSprite = new FlxSprite(city.x).loadGraphic(Paths.image('philly/win' + i, 'week3'));
|
||||||
light.scrollFactor.set(0.3, 0.3);
|
light.scrollFactor.set(0.3, 0.3);
|
||||||
light.visible = false;
|
light.visible = false;
|
||||||
light.setGraphicSize(Std.int(light.width * 0.85));
|
light.setGraphicSize(Std.int(light.width * 0.85));
|
||||||
@@ -377,20 +377,20 @@ class PlayState extends MusicBeatState
|
|||||||
phillyCityLights.add(light);
|
phillyCityLights.add(light);
|
||||||
}
|
}
|
||||||
|
|
||||||
var streetBehind:FlxSprite = new FlxSprite(-40, 50).loadGraphic(Paths.image('philly/behindTrain'));
|
var streetBehind:FlxSprite = new FlxSprite(-40, 50).loadGraphic(Paths.image('philly/behindTrain','week3'));
|
||||||
add(streetBehind);
|
add(streetBehind);
|
||||||
|
|
||||||
phillyTrain = new FlxSprite(2000, 360).loadGraphic(Paths.image('philly/train'));
|
phillyTrain = new FlxSprite(2000, 360).loadGraphic(Paths.image('philly/train','week3'));
|
||||||
if(FlxG.save.data.distractions){
|
if(FlxG.save.data.distractions){
|
||||||
add(phillyTrain);
|
add(phillyTrain);
|
||||||
}
|
}
|
||||||
|
|
||||||
trainSound = new FlxSound().loadEmbedded(Paths.sound('train_passes'));
|
trainSound = new FlxSound().loadEmbedded(Paths.sound('train_passes','week3'));
|
||||||
FlxG.sound.list.add(trainSound);
|
FlxG.sound.list.add(trainSound);
|
||||||
|
|
||||||
// var cityLights:FlxSprite = new FlxSprite().loadGraphic(AssetPaths.win0.png);
|
// var cityLights:FlxSprite = new FlxSprite().loadGraphic(AssetPaths.win0.png);
|
||||||
|
|
||||||
var street:FlxSprite = new FlxSprite(-40, streetBehind.y).loadGraphic(Paths.image('philly/street'));
|
var street:FlxSprite = new FlxSprite(-40, streetBehind.y).loadGraphic(Paths.image('philly/street','week3'));
|
||||||
add(street);
|
add(street);
|
||||||
}
|
}
|
||||||
case 'limo':
|
case 'limo':
|
||||||
@@ -398,12 +398,12 @@ class PlayState extends MusicBeatState
|
|||||||
curStage = 'limo';
|
curStage = 'limo';
|
||||||
defaultCamZoom = 0.90;
|
defaultCamZoom = 0.90;
|
||||||
|
|
||||||
var skyBG:FlxSprite = new FlxSprite(-120, -50).loadGraphic(Paths.image('limo/limoSunset'));
|
var skyBG:FlxSprite = new FlxSprite(-120, -50).loadGraphic(Paths.image('limo/limoSunset','week4'));
|
||||||
skyBG.scrollFactor.set(0.1, 0.1);
|
skyBG.scrollFactor.set(0.1, 0.1);
|
||||||
add(skyBG);
|
add(skyBG);
|
||||||
|
|
||||||
var bgLimo:FlxSprite = new FlxSprite(-200, 480);
|
var bgLimo:FlxSprite = new FlxSprite(-200, 480);
|
||||||
bgLimo.frames = Paths.getSparrowAtlas('limo/bgLimo');
|
bgLimo.frames = Paths.getSparrowAtlas('limo/bgLimo','week4');
|
||||||
bgLimo.animation.addByPrefix('drive', "background limo pink", 24);
|
bgLimo.animation.addByPrefix('drive', "background limo pink", 24);
|
||||||
bgLimo.animation.play('drive');
|
bgLimo.animation.play('drive');
|
||||||
bgLimo.scrollFactor.set(0.4, 0.4);
|
bgLimo.scrollFactor.set(0.4, 0.4);
|
||||||
@@ -420,7 +420,7 @@ class PlayState extends MusicBeatState
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var overlayShit:FlxSprite = new FlxSprite(-500, -600).loadGraphic(Paths.image('limo/limoOverlay'));
|
var overlayShit:FlxSprite = new FlxSprite(-500, -600).loadGraphic(Paths.image('limo/limoOverlay','week4'));
|
||||||
overlayShit.alpha = 0.5;
|
overlayShit.alpha = 0.5;
|
||||||
// add(overlayShit);
|
// add(overlayShit);
|
||||||
|
|
||||||
@@ -430,7 +430,7 @@ class PlayState extends MusicBeatState
|
|||||||
|
|
||||||
// overlayShit.shader = shaderBullshit;
|
// overlayShit.shader = shaderBullshit;
|
||||||
|
|
||||||
var limoTex = Paths.getSparrowAtlas('limo/limoDrive');
|
var limoTex = Paths.getSparrowAtlas('limo/limoDrive','week4');
|
||||||
|
|
||||||
limo = new FlxSprite(-120, 550);
|
limo = new FlxSprite(-120, 550);
|
||||||
limo.frames = limoTex;
|
limo.frames = limoTex;
|
||||||
@@ -438,7 +438,7 @@ class PlayState extends MusicBeatState
|
|||||||
limo.animation.play('drive');
|
limo.animation.play('drive');
|
||||||
limo.antialiasing = true;
|
limo.antialiasing = true;
|
||||||
|
|
||||||
fastCar = new FlxSprite(-300, 160).loadGraphic(Paths.image('limo/fastCarLol'));
|
fastCar = new FlxSprite(-300, 160).loadGraphic(Paths.image('limo/fastCarLol','week4'));
|
||||||
// add(limo);
|
// add(limo);
|
||||||
}
|
}
|
||||||
case 'mall':
|
case 'mall':
|
||||||
@@ -447,7 +447,7 @@ class PlayState extends MusicBeatState
|
|||||||
|
|
||||||
defaultCamZoom = 0.80;
|
defaultCamZoom = 0.80;
|
||||||
|
|
||||||
var bg:FlxSprite = new FlxSprite(-1000, -500).loadGraphic(Paths.image('christmas/bgWalls'));
|
var bg:FlxSprite = new FlxSprite(-1000, -500).loadGraphic(Paths.image('christmas/bgWalls','week5'));
|
||||||
bg.antialiasing = true;
|
bg.antialiasing = true;
|
||||||
bg.scrollFactor.set(0.2, 0.2);
|
bg.scrollFactor.set(0.2, 0.2);
|
||||||
bg.active = false;
|
bg.active = false;
|
||||||
@@ -456,7 +456,7 @@ class PlayState extends MusicBeatState
|
|||||||
add(bg);
|
add(bg);
|
||||||
|
|
||||||
upperBoppers = new FlxSprite(-240, -90);
|
upperBoppers = new FlxSprite(-240, -90);
|
||||||
upperBoppers.frames = Paths.getSparrowAtlas('christmas/upperBop');
|
upperBoppers.frames = Paths.getSparrowAtlas('christmas/upperBop','week5');
|
||||||
upperBoppers.animation.addByPrefix('bop', "Upper Crowd Bob", 24, false);
|
upperBoppers.animation.addByPrefix('bop', "Upper Crowd Bob", 24, false);
|
||||||
upperBoppers.antialiasing = true;
|
upperBoppers.antialiasing = true;
|
||||||
upperBoppers.scrollFactor.set(0.33, 0.33);
|
upperBoppers.scrollFactor.set(0.33, 0.33);
|
||||||
@@ -467,7 +467,7 @@ class PlayState extends MusicBeatState
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var bgEscalator:FlxSprite = new FlxSprite(-1100, -600).loadGraphic(Paths.image('christmas/bgEscalator'));
|
var bgEscalator:FlxSprite = new FlxSprite(-1100, -600).loadGraphic(Paths.image('christmas/bgEscalator','week5'));
|
||||||
bgEscalator.antialiasing = true;
|
bgEscalator.antialiasing = true;
|
||||||
bgEscalator.scrollFactor.set(0.3, 0.3);
|
bgEscalator.scrollFactor.set(0.3, 0.3);
|
||||||
bgEscalator.active = false;
|
bgEscalator.active = false;
|
||||||
@@ -475,13 +475,13 @@ class PlayState extends MusicBeatState
|
|||||||
bgEscalator.updateHitbox();
|
bgEscalator.updateHitbox();
|
||||||
add(bgEscalator);
|
add(bgEscalator);
|
||||||
|
|
||||||
var tree:FlxSprite = new FlxSprite(370, -250).loadGraphic(Paths.image('christmas/christmasTree'));
|
var tree:FlxSprite = new FlxSprite(370, -250).loadGraphic(Paths.image('christmas/christmasTree','week5'));
|
||||||
tree.antialiasing = true;
|
tree.antialiasing = true;
|
||||||
tree.scrollFactor.set(0.40, 0.40);
|
tree.scrollFactor.set(0.40, 0.40);
|
||||||
add(tree);
|
add(tree);
|
||||||
|
|
||||||
bottomBoppers = new FlxSprite(-300, 140);
|
bottomBoppers = new FlxSprite(-300, 140);
|
||||||
bottomBoppers.frames = Paths.getSparrowAtlas('christmas/bottomBop');
|
bottomBoppers.frames = Paths.getSparrowAtlas('christmas/bottomBop','week5');
|
||||||
bottomBoppers.animation.addByPrefix('bop', 'Bottom Level Boppers', 24, false);
|
bottomBoppers.animation.addByPrefix('bop', 'Bottom Level Boppers', 24, false);
|
||||||
bottomBoppers.antialiasing = true;
|
bottomBoppers.antialiasing = true;
|
||||||
bottomBoppers.scrollFactor.set(0.9, 0.9);
|
bottomBoppers.scrollFactor.set(0.9, 0.9);
|
||||||
@@ -492,13 +492,13 @@ class PlayState extends MusicBeatState
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var fgSnow:FlxSprite = new FlxSprite(-600, 700).loadGraphic(Paths.image('christmas/fgSnow'));
|
var fgSnow:FlxSprite = new FlxSprite(-600, 700).loadGraphic(Paths.image('christmas/fgSnow','week5'));
|
||||||
fgSnow.active = false;
|
fgSnow.active = false;
|
||||||
fgSnow.antialiasing = true;
|
fgSnow.antialiasing = true;
|
||||||
add(fgSnow);
|
add(fgSnow);
|
||||||
|
|
||||||
santa = new FlxSprite(-840, 150);
|
santa = new FlxSprite(-840, 150);
|
||||||
santa.frames = Paths.getSparrowAtlas('christmas/santa');
|
santa.frames = Paths.getSparrowAtlas('christmas/santa','week5');
|
||||||
santa.animation.addByPrefix('idle', 'santa idle in fear', 24, false);
|
santa.animation.addByPrefix('idle', 'santa idle in fear', 24, false);
|
||||||
santa.antialiasing = true;
|
santa.antialiasing = true;
|
||||||
if(FlxG.save.data.distractions){
|
if(FlxG.save.data.distractions){
|
||||||
@@ -508,7 +508,7 @@ class PlayState extends MusicBeatState
|
|||||||
case 'mallEvil':
|
case 'mallEvil':
|
||||||
{
|
{
|
||||||
curStage = 'mallEvil';
|
curStage = 'mallEvil';
|
||||||
var bg:FlxSprite = new FlxSprite(-400, -500).loadGraphic(Paths.image('christmas/evilBG'));
|
var bg:FlxSprite = new FlxSprite(-400, -500).loadGraphic(Paths.image('christmas/evilBG','week5'));
|
||||||
bg.antialiasing = true;
|
bg.antialiasing = true;
|
||||||
bg.scrollFactor.set(0.2, 0.2);
|
bg.scrollFactor.set(0.2, 0.2);
|
||||||
bg.active = false;
|
bg.active = false;
|
||||||
@@ -516,12 +516,12 @@ class PlayState extends MusicBeatState
|
|||||||
bg.updateHitbox();
|
bg.updateHitbox();
|
||||||
add(bg);
|
add(bg);
|
||||||
|
|
||||||
var evilTree:FlxSprite = new FlxSprite(300, -300).loadGraphic(Paths.image('christmas/evilTree'));
|
var evilTree:FlxSprite = new FlxSprite(300, -300).loadGraphic(Paths.image('christmas/evilTree','week5'));
|
||||||
evilTree.antialiasing = true;
|
evilTree.antialiasing = true;
|
||||||
evilTree.scrollFactor.set(0.2, 0.2);
|
evilTree.scrollFactor.set(0.2, 0.2);
|
||||||
add(evilTree);
|
add(evilTree);
|
||||||
|
|
||||||
var evilSnow:FlxSprite = new FlxSprite(-200, 700).loadGraphic(Paths.image("christmas/evilSnow"));
|
var evilSnow:FlxSprite = new FlxSprite(-200, 700).loadGraphic(Paths.image("christmas/evilSnow",'week5'));
|
||||||
evilSnow.antialiasing = true;
|
evilSnow.antialiasing = true;
|
||||||
add(evilSnow);
|
add(evilSnow);
|
||||||
}
|
}
|
||||||
@@ -531,26 +531,26 @@ class PlayState extends MusicBeatState
|
|||||||
|
|
||||||
// defaultCamZoom = 0.9;
|
// defaultCamZoom = 0.9;
|
||||||
|
|
||||||
var bgSky = new FlxSprite().loadGraphic(Paths.image('weeb/weebSky'));
|
var bgSky = new FlxSprite().loadGraphic(Paths.image('weeb/weebSky','week6'));
|
||||||
bgSky.scrollFactor.set(0.1, 0.1);
|
bgSky.scrollFactor.set(0.1, 0.1);
|
||||||
add(bgSky);
|
add(bgSky);
|
||||||
|
|
||||||
var repositionShit = -200;
|
var repositionShit = -200;
|
||||||
|
|
||||||
var bgSchool:FlxSprite = new FlxSprite(repositionShit, 0).loadGraphic(Paths.image('weeb/weebSchool'));
|
var bgSchool:FlxSprite = new FlxSprite(repositionShit, 0).loadGraphic(Paths.image('weeb/weebSchool','week6'));
|
||||||
bgSchool.scrollFactor.set(0.6, 0.90);
|
bgSchool.scrollFactor.set(0.6, 0.90);
|
||||||
add(bgSchool);
|
add(bgSchool);
|
||||||
|
|
||||||
var bgStreet:FlxSprite = new FlxSprite(repositionShit).loadGraphic(Paths.image('weeb/weebStreet'));
|
var bgStreet:FlxSprite = new FlxSprite(repositionShit).loadGraphic(Paths.image('weeb/weebStreet','week6'));
|
||||||
bgStreet.scrollFactor.set(0.95, 0.95);
|
bgStreet.scrollFactor.set(0.95, 0.95);
|
||||||
add(bgStreet);
|
add(bgStreet);
|
||||||
|
|
||||||
var fgTrees:FlxSprite = new FlxSprite(repositionShit + 170, 130).loadGraphic(Paths.image('weeb/weebTreesBack'));
|
var fgTrees:FlxSprite = new FlxSprite(repositionShit + 170, 130).loadGraphic(Paths.image('weeb/weebTreesBack','week6'));
|
||||||
fgTrees.scrollFactor.set(0.9, 0.9);
|
fgTrees.scrollFactor.set(0.9, 0.9);
|
||||||
add(fgTrees);
|
add(fgTrees);
|
||||||
|
|
||||||
var bgTrees:FlxSprite = new FlxSprite(repositionShit - 380, -800);
|
var bgTrees:FlxSprite = new FlxSprite(repositionShit - 380, -800);
|
||||||
var treetex = Paths.getPackerAtlas('weeb/weebTrees');
|
var treetex = Paths.getPackerAtlas('weeb/weebTrees','week6');
|
||||||
bgTrees.frames = treetex;
|
bgTrees.frames = treetex;
|
||||||
bgTrees.animation.add('treeLoop', [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], 12);
|
bgTrees.animation.add('treeLoop', [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], 12);
|
||||||
bgTrees.animation.play('treeLoop');
|
bgTrees.animation.play('treeLoop');
|
||||||
@@ -558,7 +558,7 @@ class PlayState extends MusicBeatState
|
|||||||
add(bgTrees);
|
add(bgTrees);
|
||||||
|
|
||||||
var treeLeaves:FlxSprite = new FlxSprite(repositionShit, -40);
|
var treeLeaves:FlxSprite = new FlxSprite(repositionShit, -40);
|
||||||
treeLeaves.frames = Paths.getSparrowAtlas('weeb/petals');
|
treeLeaves.frames = Paths.getSparrowAtlas('weeb/petals','week6');
|
||||||
treeLeaves.animation.addByPrefix('leaves', 'PETALS ALL', 24, true);
|
treeLeaves.animation.addByPrefix('leaves', 'PETALS ALL', 24, true);
|
||||||
treeLeaves.animation.play('leaves');
|
treeLeaves.animation.play('leaves');
|
||||||
treeLeaves.scrollFactor.set(0.85, 0.85);
|
treeLeaves.scrollFactor.set(0.85, 0.85);
|
||||||
@@ -607,7 +607,7 @@ class PlayState extends MusicBeatState
|
|||||||
var posY = 200;
|
var posY = 200;
|
||||||
|
|
||||||
var bg:FlxSprite = new FlxSprite(posX, posY);
|
var bg:FlxSprite = new FlxSprite(posX, posY);
|
||||||
bg.frames = Paths.getSparrowAtlas('weeb/animatedEvilSchool');
|
bg.frames = Paths.getSparrowAtlas('weeb/animatedEvilSchool','week6');
|
||||||
bg.animation.addByPrefix('idle', 'background 2', 24);
|
bg.animation.addByPrefix('idle', 'background 2', 24);
|
||||||
bg.animation.play('idle');
|
bg.animation.play('idle');
|
||||||
bg.scrollFactor.set(0.8, 0.9);
|
bg.scrollFactor.set(0.8, 0.9);
|
||||||
@@ -1110,7 +1110,9 @@ class PlayState extends MusicBeatState
|
|||||||
|
|
||||||
var luaWiggles:Array<WiggleEffect> = [];
|
var luaWiggles:Array<WiggleEffect> = [];
|
||||||
|
|
||||||
|
#if windows
|
||||||
public static var luaModchart:ModchartState = null;
|
public static var luaModchart:ModchartState = null;
|
||||||
|
#end
|
||||||
|
|
||||||
function startCountdown():Void
|
function startCountdown():Void
|
||||||
{
|
{
|
||||||
@@ -1808,11 +1810,13 @@ class PlayState extends MusicBeatState
|
|||||||
if (FlxG.keys.justPressed.EIGHT)
|
if (FlxG.keys.justPressed.EIGHT)
|
||||||
{
|
{
|
||||||
FlxG.switchState(new AnimationDebug(SONG.player2));
|
FlxG.switchState(new AnimationDebug(SONG.player2));
|
||||||
|
#if windows
|
||||||
if (luaModchart != null)
|
if (luaModchart != null)
|
||||||
{
|
{
|
||||||
luaModchart.die();
|
luaModchart.die();
|
||||||
luaModchart = null;
|
luaModchart = null;
|
||||||
}
|
}
|
||||||
|
#end
|
||||||
}
|
}
|
||||||
|
|
||||||
#end
|
#end
|
||||||
|
|||||||
Reference in new issue
Block a user