diff --git a/assets/shared/images/characters/GF_assets.png b/assets/shared/images/characters/GF_assets.png index c372be1fab..981546f828 100644 Binary files a/assets/shared/images/characters/GF_assets.png and b/assets/shared/images/characters/GF_assets.png differ diff --git a/assets/shared/images/characters/GF_assets.xml b/assets/shared/images/characters/GF_assets.xml index b55ce87682..52f29fac92 100644 --- a/assets/shared/images/characters/GF_assets.xml +++ b/assets/shared/images/characters/GF_assets.xml @@ -3,6 +3,36 @@ Created with Funkin Packer v0.1.3 https://neeeoo.github.io/funkin-packer/ --> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -24,19 +54,13 @@ Created with Funkin Packer v0.1.3 https://neeeoo.github.io/funkin-packer/ - - - - - - @@ -47,8 +71,6 @@ Created with Funkin Packer v0.1.3 https://neeeoo.github.io/funkin-packer/ - - @@ -58,10 +80,6 @@ Created with Funkin Packer v0.1.3 https://neeeoo.github.io/funkin-packer/ - - - - @@ -75,22 +93,16 @@ Created with Funkin Packer v0.1.3 https://neeeoo.github.io/funkin-packer/ - - - - - - @@ -130,18 +142,6 @@ Created with Funkin Packer v0.1.3 https://neeeoo.github.io/funkin-packer/ - - - - - - - - - - - - diff --git a/source/Main.hx b/source/Main.hx index cae35cd3e8..92d5244d83 100644 --- a/source/Main.hx +++ b/source/Main.hx @@ -36,7 +36,7 @@ class Main extends Sprite { CoolUtil.haxe_trace = Log.trace; Log.trace = CoolUtil.haxe_print; - game = new FlxGame(0, 0, TitleState, 60, 60, true); + game = new FlxGame(1280, 720, TitleState, 60, 60, true); // FlxG.game._customSoundTray wants just the class, it calls new from // create() in there, which gets called when it's added to stage diff --git a/source/game/Character.hx b/source/game/Character.hx index d9787b9cfc..ae703d8ea4 100644 --- a/source/game/Character.hx +++ b/source/game/Character.hx @@ -496,7 +496,7 @@ class Character extends FlxSprite { script?.call("dance", [altAnim, force]); if (shouldDance) { if (!debugMode && curCharacter != '' && hasAnims() && (force || (!playFullAnim && !preventDanceForAnim))) { - var alt = ""; + var alt:String = ''; if ((!dancesLeftAndRight && hasAnim("idle" + altAnim)) || (dancesLeftAndRight @@ -506,17 +506,16 @@ class Character extends FlxSprite { mostRecentAlt = alt; - var special_animation = !(curAnimName().startsWith('idle') + var alwaysPlayAnimation:Bool = (curAnimName().startsWith('idle') || curAnimName().startsWith('danceLeft') || curAnimName().startsWith('danceRight') || curAnimName().startsWith('sing')); - if (!special_animation || curAnimFinished() || curAnimLooped()) { + if (alwaysPlayAnimation || curAnimFinished() || curAnimLooped()) { if (!dancesLeftAndRight) playAnim('idle' + alt); - else { + else if (dancesLeftAndRight) { danced = !danced; - if (danced) playAnim('danceRight' + alt); else @@ -554,12 +553,10 @@ class Character extends FlxSprite { preventDanceForAnim = true; var daOffset = animOffsets.get(AnimName); - if (animOffsets.exists(AnimName)) { - offset.set((daOffset[0] * _cosAngle) - (daOffset[1] *_sinAngle), (daOffset[1] * _cosAngle) + (daOffset[0] * _sinAngle)); - } - else{ + if (animOffsets.exists(AnimName)) + offset.set((daOffset[0] * _cosAngle) - (daOffset[1] * _sinAngle), (daOffset[1] * _cosAngle) + (daOffset[0] * _sinAngle)); + else offset.set(0, 0); - } } public inline function addOffset(name:String, x:Float = 0, y:Float = 0) {