From bce06b11fedc48ec12e660f11cc66ec995d84170 Mon Sep 17 00:00:00 2001 From: Vortex <73261680+Vortex2Oblivion@users.noreply.github.com> Date: Mon, 30 Dec 2024 14:35:47 -0500 Subject: [PATCH] oopie --- src/flixel/math/FlxMath.hx | 1 + src/raylib/RayMath.hx | 2 +- test/src/OtherState.hx | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/flixel/math/FlxMath.hx b/src/flixel/math/FlxMath.hx index 108d641..339536a 100644 --- a/src/flixel/math/FlxMath.hx +++ b/src/flixel/math/FlxMath.hx @@ -1,5 +1,6 @@ package flixel.math; + class FlxMath { public static function roundDecimal(value:Float, precision:Int):Float { var mult:Float = 1; diff --git a/src/raylib/RayMath.hx b/src/raylib/RayMath.hx index 67f395f..04ed941 100644 --- a/src/raylib/RayMath.hx +++ b/src/raylib/RayMath.hx @@ -12,7 +12,7 @@ extern class RayMath { public static final RAD2DEG:Float; @:native("Clamp") - public static function name(value:Float, min:Float, max:Float):Float; + public static function clamp(value:Float, min:Float, max:Float):Float; @:native("Lerp") public static function lerp(start:Float, end:Float, amount:Float):Float; diff --git a/test/src/OtherState.hx b/test/src/OtherState.hx index f0f5842..330917b 100644 --- a/test/src/OtherState.hx +++ b/test/src/OtherState.hx @@ -16,6 +16,7 @@ class OtherState extends FlxState { maurice.antialiasing = true; add(maurice); } + override public function update(elapsed:Float) { super.update(elapsed); bgColor = Raylib.colorFromHSV(Raylib.getTime() * 100, 1, 1);