Skip to content

Commit f6d9d29

Browse files
AbnormalPoofEliteMasterEric
authored andcommitted
add angle too bc why not
1 parent ff56b19 commit f6d9d29

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

source/funkin/data/stage/StageData.hx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,4 +281,12 @@ typedef StageDataCharacter =
281281
@:optional
282282
@:default(1.0)
283283
var alpha:Float;
284+
285+
/**
286+
* The angle of the character, as a float.
287+
* @default 1.0
288+
*/
289+
@:optional
290+
@:default(0.0)
291+
var angle:Float;
284292
};

source/funkin/play/stage/Stage.hx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,7 @@ class Stage extends FlxSpriteGroup implements IPlayStateScriptedClass implements
458458
character.scrollFactor.y += stageCharData.scroll[1];
459459

460460
character.alpha = stageCharData.alpha;
461+
character.angle = stageCharData.angle;
461462

462463
#if FEATURE_DEBUG_FUNCTIONS
463464
// Draw the debug icon at the character's feet.

0 commit comments

Comments
 (0)