Author SHA1 Message Date
Yoshman29 aaea25bf1f haxe language server hopeful fix (needs testing) 2026-01-29 21:36:01 +01:00
4d84e65cb5 flixel-animate implementation (#893)
* added flixel-animate to libs

* I BROKE THE OFFSETS FUCK

.

* yes it does blehtty wdym??

* Removed flxanimate entirely + Fixed transition + Fixed offsets

* Deleted caches (relaunching actions)

* frameOffset for atlases (need testing)

* useRenderTexture added to xml

* Fixed atlases for mods

* a simple redirect so old mods wont break that badly (#879)

* Update FunkinSprite.hx

* remove trace

* Fixed ghosts for atlases

* usable character editor (not entirely fixed)

* fixed zoomFactor + temp fix for atlas popping

* early structure for character editor atlas anim display

* zoomFactor for atlases

* Animate Atlas character editor previews

* FlxAnimateSettings specification

* fixed animation swapping on atlas characters

* OH YEA BABY NEW FLXANIMATE UPDATE THAT MADE CODE 50X SIMPLER **AGAIN** 💖 /pos

* Added label checkbox in Character Editor

* Fixed culling issues with FlxAnimate (fr this time)

* fixed some atlases

* HOW THE FUCK

* gf sad fix + AliasMacro (for backwards comp, manual impl for now)

* Fixed pop-ins

* Update Character.hx

* applyStageMatrix

* FlxAnimate pull request merge (empty commit)

* flixel-animate** i'm clumsy asf i meant the lib not the class name fuck

* Update libs.xml

* Merge changes from main (#892)

* repair ScriptableShader.shader = null (#877)

* optimize updateInput (#878)

* optimize updateInput

* resize optimize

* __notePerStrum optimize

* Update StrumLine.hx

* NoteGroup optimize (#881)

* NoteGroup optimize

* CoolUtil.bound faster

* makes commit with github desktop W FRAKITS

* Use fastSinCos for notes (#889)

* Update Strum.hx

* Update Strum.hx

---------

Co-authored-by: HEIHUAa <112499486+HEIHUAa@users.noreply.github.com>
Co-authored-by: Frakits <90983918+Frakits@users.noreply.github.com>

---------

Co-authored-by: Kolze <53307233+KolzeYT@users.noreply.github.com>
Co-authored-by: HEIHUAa <112499486+HEIHUAa@users.noreply.github.com>
Co-authored-by: Frakits <90983918+Frakits@users.noreply.github.com>
2026-01-28 20:29:32 +01:00
HEIHUAaandGitHub f8f9d6eb4a Use fastSinCos for notes (#889)
* Update Strum.hx

* Update Strum.hx
2026-01-25 12:18:18 +01:00
Frakits 6d3243b256 Merge branch 'main' of github.com:CodenameCrew/CodenameEngine 2026-01-22 18:54:33 +02:00
Frakits 0cfb3e52c5 makes commit with github desktop W FRAKITS 2026-01-22 18:54:14 +02:00
HEIHUAaandGitHub 9d9640071c NoteGroup optimize (#881)
* NoteGroup optimize

* CoolUtil.bound faster
2026-01-21 07:26:55 +07:00
HEIHUAaandGitHub 8fc1493759 optimize updateInput (#878)
* optimize updateInput

* resize optimize

* __notePerStrum optimize

* Update StrumLine.hx
2026-01-20 13:16:41 +07:00
HEIHUAaandGitHub 69d82f560d repair ScriptableShader.shader = null (#877) 2026-01-20 13:16:30 +07:00
6 changed files with 47 additions and 18 deletions
+27 -3
View File
@@ -19,7 +19,7 @@
<!--Switch Export with Unique ApplicationID and Icon-->
<set name="APP_ID" value="0x0100f6c013bbc000" />
<!-- DO NOT REMOVE!! ALLOWS ME TO DO REGIONS LIKE IN C# AND KEEP CODE ORGANIZED. REMOVING IT WOULD BREAK THE ENGINE -->
<!-- DO NOT REMOVE!! -->
<haxedef name="REGION" />
<!--The flixel preloader is not accurate in Chrome. You can use it regularly if you embed the swf into a html file
@@ -72,7 +72,11 @@
<!-- Comment this out to prevent extending classes in hscript.
Reduces compilation time at the cost of limited HScript flexibility. !-->
<define name="CUSTOM_CLASSES" unless="STRIPPED_COMPILE" />
<define name="CUSTOM_CLASSES" unless="STRIPPED_COMPILE"/>
<!-- Comment this out to disable support for abstracts in hscript.
Reduces compilation time at the cost of limited HScript flexibility. !-->
<define name="HSCRIPT_ABSTRACT_SUPPORT" unless="STRIPPED_COMPILE"/>
<!-- Comment this out to disable multithreading !-->
<haxedef name="ALLOW_MULTITHREADING" unless="web || flash" />
@@ -115,6 +119,24 @@
<!-- Disable a optimization, to allow reflection to use more functions -->
<define name="FLX_NO_GENERIC" />
<!-- _______________________________ Display Server ______________________________ -->
<haxedef name="LIME_CMD" value="${project.command}"/>
<define name="LIME_DISPLAY" if="${project.command == update} || ${project.command == display} || display || display_details" />
<haxedef name="LIME_DISPLAY" if="LIME_DISPLAY" />
<section if="LIME_DISPLAY">
<!-- For display server -->
<undefine name="COMPILE_ALL_CLASSES" />
<unset name="COMPILE_ALL_CLASSES" />
<undefine name="HSCRIPT_ABSTRACT_SUPPORT" />
<unset name="HSCRIPT_ABSTRACT_SUPPORT" />
<undefine name="CUSTOM_CLASSES" />
<unset name="CUSTOM_CLASSES" />
</section>
<!-- _______________________________ Libraries ______________________________ -->
<!-- KEEP BOTH OF THESE AS THERE ARE SOME PARTICULAR CASES! -->
@@ -172,7 +194,7 @@
<!-- ______________________________ Haxedefines _____________________________ -->
<haxeflag name="--macro" value="funkin.backend.system.macros.BuildInfo.printBuildInfo()" />
<haxeflag name="--macro" value="funkin.backend.system.macros.BuildInfo.printBuildInfo()" unless="display" />
<haxedef name="FLX_NO_FOCUS_LOST_SCREEN" />
@@ -219,8 +241,10 @@
<haxeflag name="--macro" value="modchart.backend.macros.Macro.includeFiles()"/>
</section>
<section if="COMPILE_ALL_CLASSES">
<haxeflag name="-dce" value="no" />
<haxeflag name="--macro" value="funkin.backend.system.macros.Macros.addAdditionalClasses()" />
</section>
+4
View File
@@ -374,6 +374,10 @@ class FunkinSprite extends FlxAnimate implements IBeatReceiver implements IOffse
super.prepareDrawMatrix(matrix, camera);
applyZoomFactor(matrix, camera);
}
function applyZoomFactor(matrix:FlxMatrix, camera:FlxCamera) {
if(__shouldDoZoomFactor()) {
__prepareZoomFactor(_rect2, camera);
matrix.setTo(
@@ -25,7 +25,7 @@ class AliasMacro {
}];
public static function build():Array<Field> {
#if display
#if LIME_DISPLAY
return Context.getBuildFields();
#end
@@ -19,9 +19,9 @@ class DefinesMacro {
// INTERNAL MACROS
#if REGION
private static macro function __getDefines() {
private static macro function __getDefines():Expr {
#if display
return macro $v{[]};
return macro $v{([]:Map<String, Dynamic>)};
#else
return macro $v{Context.getDefines()};
#end
@@ -64,7 +64,7 @@ class GitCommitMacro {
// INTERNAL MACROS
#if REGION
private static macro function __getCommitHash() {
#if display
#if LIME_DISPLAY
return macro $v{"-"};
#else
try {
@@ -78,7 +78,7 @@ class GitCommitMacro {
}
private static macro function __getCommitNumber() {
#if display
#if LIME_DISPLAY
return macro $v{0};
#else
try {
@@ -92,7 +92,7 @@ class GitCommitMacro {
}
private static macro function __getCommitHashLong() {
#if display
#if LIME_DISPLAY
return macro $v{"-"};
#else
try {
@@ -106,7 +106,7 @@ class GitCommitMacro {
}
private static macro function __getCommitMessage() {
#if display
#if LIME_DISPLAY
return macro $v{"-"};
#else
try {
@@ -124,7 +124,7 @@ class GitCommitMacro {
}
private static macro function __getCommitAuthor() {
#if display
#if LIME_DISPLAY
return macro $v{"-"};
#else
try {
@@ -138,8 +138,8 @@ class GitCommitMacro {
}
private static macro function __getCommitDate() {
#if display
return macro $v{Date.now()};
#if LIME_DISPLAY
return macro Date.now();
#else
try {
// get the time in UTC format
@@ -164,7 +164,7 @@ class GitCommitMacro {
}
private static macro function __getCurrentBranch() {
#if display
#if LIME_DISPLAY
return macro $v{"-"};
#else
try {
@@ -179,7 +179,7 @@ class GitCommitMacro {
}
private static macro function __getHasUncommittedChanges() {
#if display
#if LIME_DISPLAY
return macro $v{false};
#else
try {
+4 -3
View File
@@ -1,6 +1,5 @@
package funkin.game;
import sys.FileSystem;
import flixel.util.FlxSpriteUtil;
import openfl.display.Graphics;
import flixel.util.typeLimit.OneOfTwo;
@@ -90,6 +89,8 @@ class Character extends FunkinSprite implements IBeatReceiver implements IOffset
scripts.call("create");
buildCharacter(xml);
scripts.call("postCreate");
}
@:noCompletion var __swappedLeftRightAnims:Bool = false;
@@ -158,9 +159,9 @@ class Character extends FunkinSprite implements IBeatReceiver implements IOffset
if (event.cancelled) return;
if (isDanceLeftDanceRight)
playAnim(((danced = !danced) ? 'danceLeft' : 'danceRight') + idleSuffix, DANCE);
playAnim(((danced = !danced) ? 'danceLeft' : 'danceRight') + idleSuffix, false, DANCE);
else
playAnim('idle' + idleSuffix, DANCE);
playAnim('idle' + idleSuffix, false, DANCE);
}
public function tryDance() {