Skip to content

Commit

Permalink
add angle too bc why not
Browse files Browse the repository at this point in the history
  • Loading branch information
AbnormalPoof authored and EliteMasterEric committed Feb 18, 2025
1 parent ff56b19 commit f6d9d29
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source/funkin/data/stage/StageData.hx
Original file line number Diff line number Diff line change
Expand Up @@ -281,4 +281,12 @@ typedef StageDataCharacter =
@:optional
@:default(1.0)
var alpha:Float;

/**
* The angle of the character, as a float.
* @default 1.0
*/
@:optional
@:default(0.0)
var angle:Float;
};
1 change: 1 addition & 0 deletions source/funkin/play/stage/Stage.hx
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,7 @@ class Stage extends FlxSpriteGroup implements IPlayStateScriptedClass implements
character.scrollFactor.y += stageCharData.scroll[1];

character.alpha = stageCharData.alpha;
character.angle = stageCharData.angle;

#if FEATURE_DEBUG_FUNCTIONS
// Draw the debug icon at the character's feet.
Expand Down

0 comments on commit f6d9d29

Please sign in to comment.