Skip to content

Commit

Permalink
update anims
Browse files Browse the repository at this point in the history
  • Loading branch information
Apearson75 committed May 31, 2022
1 parent dd82c2f commit b1e513e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/FreeplayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,13 @@ class FreeplayState extends MusicBeatState
text.setFormat(Paths.font("vcr.ttf"), size, FlxColor.WHITE, RIGHT);
text.scrollFactor.set();
add(text);

FlxG.camera.zoom = 5;
FlxG.camera.angle = 45;
FlxTween.tween(FlxG.camera, {zoom: 1, angle: 0}, .6, {
ease: FlxEase.expoOut
});

super.create();
}

Expand Down
7 changes: 7 additions & 0 deletions source/StoryMenuState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import flixel.group.FlxGroup;
import flixel.math.FlxMath;
import flixel.text.FlxText;
import flixel.tweens.FlxTween;
import flixel.tweens.FlxEase;
import flixel.util.FlxColor;
import flixel.util.FlxTimer;
import lime.net.curl.CURLCode;
Expand Down Expand Up @@ -185,6 +186,12 @@ class StoryMenuState extends MusicBeatState
changeWeek();
changeDifficulty();

FlxG.camera.zoom = 5;
FlxG.camera.angle = 45;
FlxTween.tween(FlxG.camera, {zoom: 1, angle: 0}, .6, {
ease: FlxEase.expoOut
});

super.create();
}

Expand Down

0 comments on commit b1e513e

Please # to comment.