mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-02-17 04:11:23 -05:00
Week 5 changes
This commit is contained in:
parent
8eef111021
commit
ef53acb3a3
2 changed files with 8 additions and 0 deletions
|
@ -174,6 +174,8 @@ class SongLoad
|
||||||
|
|
||||||
for (sectionIndex => section in noteStuff)
|
for (sectionIndex => section in noteStuff)
|
||||||
{
|
{
|
||||||
|
if (section == null || section.sectionNotes == null)
|
||||||
|
continue;
|
||||||
for (noteIndex => noteDataArray in section.sectionNotes)
|
for (noteIndex => noteDataArray in section.sectionNotes)
|
||||||
{
|
{
|
||||||
var arrayDipshit:Array<Dynamic> = cast noteDataArray; // crackhead
|
var arrayDipshit:Array<Dynamic> = cast noteDataArray; // crackhead
|
||||||
|
|
|
@ -97,6 +97,12 @@ class Stage extends FlxSpriteGroup implements IHook
|
||||||
propSprite.active = false;
|
propSprite.active = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (propSprite.frames == null || propSprite.frames.numFrames == 0)
|
||||||
|
{
|
||||||
|
trace(' ERROR: Could not build texture for prop.');
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (Std.isOfType(dataProp.scale, Array))
|
if (Std.isOfType(dataProp.scale, Array))
|
||||||
{
|
{
|
||||||
propSprite.scale.set(dataProp.scale[0], dataProp.scale[1]);
|
propSprite.scale.set(dataProp.scale[0], dataProp.scale[1]);
|
||||||
|
|
Loading…
Reference in a new issue