diff --git a/buildnumber.txt b/buildnumber.txt index 1bf1dcc8..c4846c4f 100644 --- a/buildnumber.txt +++ b/buildnumber.txt @@ -1 +1 @@ -2140 \ No newline at end of file +2145 \ No newline at end of file diff --git a/source/funkin/game/Stage.hx b/source/funkin/game/Stage.hx index a5521990..5ee3b086 100644 --- a/source/funkin/game/Stage.hx +++ b/source/funkin/game/Stage.hx @@ -63,6 +63,24 @@ class Stage extends FlxBasic implements IBeatReceiver { stageSprites.set(spr.name, spr); state.add(spr); spr; + case "box": + trace('HOLY FUCK BOX DETECTED'); // TODO: someone help this aint doing shit!! >:( + if ( !node.has.name || !node.has.width || !node.has.height) continue; + + var spr = new FlxSprite( + (node.has.x) ? Std.parseInt(node.att.x) : 0, + (node.has.y) ? Std.parseInt(node.att.y) : 0 + ).makeGraphic( + node.att.width, + node.att.height, + (node.has.color) ? Std.parseInt(node.att.color) : 0xFFFFFFFF + ); + + trace(node.att.name, node.att.width, node.att.height); + + stageSprites.set(node.getAtt("name"), spr); + state.add(spr); + spr; case "boyfriend" | "bf": if (PlayState.instance == null || PlayState.instance.boyfriend == null) continue; doCharNodeShit(PlayState.instance.boyfriend, node);