From 44d5328355aa9aa68a5b189daa971e59b7cae053 Mon Sep 17 00:00:00 2001 From: Yoshman29 <81191621+YoshiCrafter29@users.noreply.github.com> Date: Sun, 8 Jan 2023 00:34:02 +0100 Subject: [PATCH] fuck! --- assets/data/characters/gf.hx | 3 +++ assets/data/characters/gf.xml | 4 ++-- buildnumber.txt | 2 +- source/funkin/system/FlxAnimate.hx | 11 ++++++++++- 4 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 assets/data/characters/gf.hx diff --git a/assets/data/characters/gf.hx b/assets/data/characters/gf.hx new file mode 100644 index 00000000..2d0c235b --- /dev/null +++ b/assets/data/characters/gf.hx @@ -0,0 +1,3 @@ +function update(e) { + angle += 45 * e; +} \ No newline at end of file diff --git a/assets/data/characters/gf.xml b/assets/data/characters/gf.xml index 444d5349..350bb9a0 100644 --- a/assets/data/characters/gf.xml +++ b/assets/data/characters/gf.xml @@ -5,8 +5,8 @@ - - + + diff --git a/buildnumber.txt b/buildnumber.txt index 28445ea6..a3bcf894 100644 --- a/buildnumber.txt +++ b/buildnumber.txt @@ -1 +1 @@ -1926 \ No newline at end of file +1942 \ No newline at end of file diff --git a/source/funkin/system/FlxAnimate.hx b/source/funkin/system/FlxAnimate.hx index aa1de81d..c89b79cf 100644 --- a/source/funkin/system/FlxAnimate.hx +++ b/source/funkin/system/FlxAnimate.hx @@ -1,14 +1,17 @@ package funkin.system; +import flixel.math.FlxMath; import openfl.geom.ColorTransform; import flixel.math.FlxMatrix; import flixel.math.FlxAngle; import flixel.math.FlxRect; import flixel.graphics.frames.FlxFrame; import flixel.math.FlxPoint; +import flixel.FlxG; +import flixel.FlxCamera; class FlxAnimate extends flxanimate.FlxAnimate { - public override function drawLimb(limb:FlxFrame, _matrix:FlxMatrix, ?colorTransform:ColorTransform) + override function drawLimb(limb:FlxFrame, _matrix:FlxMatrix, ?colorTransform:ColorTransform) { if (alpha == 0 || colorTransform != null && (colorTransform.alphaMultiplier == 0 || colorTransform.alphaOffset == -255) || limb == null || limb.type == EMPTY) return; @@ -69,4 +72,10 @@ class FlxAnimate extends flxanimate.FlxAnimate { drawDebug(); #end } + + override function limbOnScreen(limb:FlxFrame, m:FlxMatrix, ?Camera:FlxCamera) + { + // TODO: ACTUAL OPTIMISATION + return true; + } } \ No newline at end of file