week unlockin shit
This commit is contained in:
parent
57520a407d
commit
b051b18cf2
|
@ -22,7 +22,7 @@ class MenuCharacter extends FlxSprite
|
||||||
animation.addByPrefix('dad', "Dad idle dance BLACK LINE", 24);
|
animation.addByPrefix('dad', "Dad idle dance BLACK LINE", 24);
|
||||||
animation.addByPrefix('spooky', "spooky dance idle BLACK LINES", 24);
|
animation.addByPrefix('spooky', "spooky dance idle BLACK LINES", 24);
|
||||||
animation.addByPrefix('pico', "Pico Idle Dance", 24);
|
animation.addByPrefix('pico', "Pico Idle Dance", 24);
|
||||||
animation.addByPrefix('mom', "Mom Idle Black Lines smol", 24);
|
animation.addByPrefix('mom', "Mom Idle BLACK LINES", 24);
|
||||||
|
|
||||||
animation.play(character);
|
animation.play(character);
|
||||||
updateHitbox();
|
updateHitbox();
|
||||||
|
|
|
@ -23,7 +23,7 @@ class MenuItem extends FlxSpriteGroup
|
||||||
week.animation.addByPrefix('week1', "WEEK1 select", 24);
|
week.animation.addByPrefix('week1', "WEEK1 select", 24);
|
||||||
week.animation.addByPrefix('week2', "week2 select", 24);
|
week.animation.addByPrefix('week2', "week2 select", 24);
|
||||||
week.animation.addByPrefix('week3', "Week 3 press", 24);
|
week.animation.addByPrefix('week3', "Week 3 press", 24);
|
||||||
week.animation.addByPrefix('week3', "Week 4 press", 24);
|
week.animation.addByPrefix('week4', "Week 4 press", 24);
|
||||||
add(week);
|
add(week);
|
||||||
|
|
||||||
week.animation.play('week' + weekNum);
|
week.animation.play('week' + weekNum);
|
||||||
|
|
|
@ -8,6 +8,7 @@ import flixel.group.FlxGroup;
|
||||||
import flixel.math.FlxMath;
|
import flixel.math.FlxMath;
|
||||||
import flixel.text.FlxText;
|
import flixel.text.FlxText;
|
||||||
import flixel.tweens.FlxTween;
|
import flixel.tweens.FlxTween;
|
||||||
|
import flixel.util.FlxColor;
|
||||||
import flixel.util.FlxTimer;
|
import flixel.util.FlxTimer;
|
||||||
import lime.net.curl.CURLCode;
|
import lime.net.curl.CURLCode;
|
||||||
|
|
||||||
|
@ -74,6 +75,9 @@ class StoryMenuState extends MusicBeatState
|
||||||
grpWeekText = new FlxTypedGroup<MenuItem>();
|
grpWeekText = new FlxTypedGroup<MenuItem>();
|
||||||
add(grpWeekText);
|
add(grpWeekText);
|
||||||
|
|
||||||
|
var blackBarThingie:FlxSprite = new FlxSprite().makeGraphic(FlxG.width, 56, FlxColor.BLACK);
|
||||||
|
add(blackBarThingie);
|
||||||
|
|
||||||
grpWeekCharacters = new FlxTypedGroup<MenuCharacter>();
|
grpWeekCharacters = new FlxTypedGroup<MenuCharacter>();
|
||||||
|
|
||||||
grpLocks = new FlxTypedGroup<FlxSprite>();
|
grpLocks = new FlxTypedGroup<FlxSprite>();
|
||||||
|
|
|
@ -64,7 +64,9 @@ class TitleState extends MusicBeatState
|
||||||
|
|
||||||
if (FlxG.save.data.weekUnlocked != null)
|
if (FlxG.save.data.weekUnlocked != null)
|
||||||
{
|
{
|
||||||
StoryMenuState.weekUnlocked = FlxG.save.data.weekUnlocked;
|
// FIX LATER!!!
|
||||||
|
// WEEK UNLOCK PROGRESSION!!
|
||||||
|
// StoryMenuState.weekUnlocked = FlxG.save.data.weekUnlocked;
|
||||||
|
|
||||||
if (StoryMenuState.weekUnlocked.length < 4)
|
if (StoryMenuState.weekUnlocked.length < 4)
|
||||||
StoryMenuState.weekUnlocked.insert(0, true);
|
StoryMenuState.weekUnlocked.insert(0, true);
|
||||||
|
|
Loading…
Reference in New Issue