Week 5 changes

This commit is contained in:
Eric Myllyoja 2022-03-01 22:07:33 -05:00
parent 8eef111021
commit ef53acb3a3
2 changed files with 8 additions and 0 deletions

View file

@ -174,6 +174,8 @@ class SongLoad
for (sectionIndex => section in noteStuff)
{
if (section == null || section.sectionNotes == null)
continue;
for (noteIndex => noteDataArray in section.sectionNotes)
{
var arrayDipshit:Array<Dynamic> = cast noteDataArray; // crackhead

View file

@ -97,6 +97,12 @@ class Stage extends FlxSpriteGroup implements IHook
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))
{
propSprite.scale.set(dataProp.scale[0], dataProp.scale[1]);