Merge branch 'main' into base-fnf-port-remake

This commit is contained in:
Ne_Eo
2024-10-02 21:27:45 +02:00
5 changed files with 50 additions and 9 deletions
+36
View File
@@ -0,0 +1,36 @@
# You need to run the following command in your repository:
#
# git config blame.ignoreRevsFile .git-blame-ignore-revs
#
# afterwards, revisions specified in this file will be ignored in git blame
# any revision needs to be in a unabbreviated sha1 format
# see https://git-scm.com/docs/git-blame#Documentation/git-blame.txt---ignore-revs-fileltfilegt for more information
# A good format to use is:
# # reason for ignoring the revisions
# <rev>
# Removed unused imports & reordered imports
d17ea72c74bbbadac0bb00e11868dddf6aebd346
# ScriptPack revert
8a2ac9e1d4e51e688cd2339bdccd6b39ed7d52a3
# Spaces to tabs
a63e5f5958ed0643fab92e9d5708a4c26e5238a1
# Removed useless indentation and more spaces to tabs
f8b20774e3f035eeddb9211a28a391b20db74456
# Revert a revert
75f6bec8294e5b783368cfd7ae6e45698c326cb3
4aa95838d7df9c307bcac6456e937081645a0f4a
# Revert a revert (note types use int)
17e177a69554f4d798f5acdd3799687dc9f01a93
008ad05bf1407d9772805ed69985cfbcde79e495
# Revert a revert (empty script)
392416e00cbd82e1c49e82a9fafdcf2e069a654e
159467de832a172681200c463d244a46e295c3c8
+1 -1
View File
@@ -48,7 +48,7 @@
<print pretty="true">Rebuilding Lime...</print>
<!- - Build lime - ->
<cmd inLib="lime" cmd="haxelib run lime rebuild . $PLATFORM -clean" />
<cmd inLib="lime" cmd="haxelib run lime rebuild . $PLATFORM -release -clean" />
<cmd inLib="lime" dir="tools" cmd="haxe tools.hxml" />
</if> -->
+6 -3
View File
@@ -25,10 +25,13 @@ class FlxAnimate extends flxanimate.FlxAnimate {
if (limb != _pivot) {
if (frameOffsetAngle != null && frameOffsetAngle != angle)
{
var angleOff = (-angle + frameOffsetAngle) * FlxAngle.TO_RAD;
rMatrix.rotate(-angleOff);
var angleOff = (frameOffsetAngle - angle) * FlxAngle.TO_RAD;
var cos = Math.cos(angleOff);
var sin = Math.sin(angleOff);
// cos doesnt need to be negated
rMatrix.rotateWithTrig(cos, -sin);
rMatrix.translate(-frameOffset.x, -frameOffset.y);
rMatrix.rotate(angleOff);
rMatrix.rotateWithTrig(cos, sin);
}
else
{
+6 -4
View File
@@ -71,15 +71,17 @@ class Paths
inline static public function voices(song:String, ?difficulty:String, ?prefix:String = "", ?ext:String) {
if (difficulty == null) difficulty = Constants.DEFAULT_DIFFICULTY;
if (ext == null) ext = Constants.SOUND_EXT;
var diff = getPath('songs/${song.toLowerCase()}/song/Voices$prefix-${difficulty.toLowerCase()}.${ext}', null);
return OpenFlAssets.exists(diff) ? diff : getPath('songs/${song.toLowerCase()}/song/Voices$prefix.${ext}', null);
song = song.toLowerCase();
var diff = getPath('songs/$song/song/Voices$prefix-${difficulty.toLowerCase()}.${ext}', null);
return OpenFlAssets.exists(diff) ? diff : getPath('songs/$song/song/Voices$prefix.${ext}', null);
}
inline static public function inst(song:String, ?difficulty:String, ?prefix:String = "", ?ext:String) {
if (difficulty == null) difficulty = Constants.DEFAULT_DIFFICULTY;
if (ext == null) ext = Constants.SOUND_EXT;
var diff = getPath('songs/${song.toLowerCase()}/song/Inst$prefix-${difficulty.toLowerCase()}.${ext}', null);
return OpenFlAssets.exists(diff) ? diff : getPath('songs/${song.toLowerCase()}/song/Inst$prefix.${ext}', null);
song = song.toLowerCase();
var diff = getPath('songs/$song/song/Inst$prefix-${difficulty.toLowerCase()}.${ext}', null);
return OpenFlAssets.exists(diff) ? diff : getPath('songs/$song/song/Inst$prefix.${ext}', null);
}
static public function image(key:String, ?library:String, checkForAtlas:Bool = false, ?ext:String) {
@@ -226,7 +226,7 @@ typedef SwagSong =
typedef SwagSection =
{
var sectionNotes:Array<Dynamic>;
var sectionNotes:Array<Array<Dynamic>>;
var lengthInSteps:Int;
var ?sectionBeats:Float;
var ?typeOfSection:Int;