Skip to content

Commit

Permalink
pinnacle fx
Browse files Browse the repository at this point in the history
  • Loading branch information
chosencharacters committed Jan 1, 2025
1 parent a499145 commit 7fcac41
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 1 deletion.
8 changes: 8 additions & 0 deletions assets/data/anims/general-anims.xml
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,12 @@
<anim name="boyfriend" fps="100ms" looping="false">36t47</anim>
<anim name="paco" fps="100ms" looping="false">48t59</anim>
</animSet>

<animSet image="pinnacle-4-aurora-fx" width="960" height="540">
<anim name="idle" fps="500ms">0t7</anim>
</animSet>

<animSet image="pinnacle-4-stars-fx" width="960" height="540">
<anim name="idle" fps="40ms">0t23</anim>
</animSet>
</root>
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/levels/maps/pinnacle/pinnacle-3-stars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 25 additions & 1 deletion source/ui/credits/Credits.hx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ class Credits extends FlxTypedGroupExt<FlxSprite>
var fireworks:Array<CreditsFirework> = [];

var mountains:FlxSpriteExt;
var stars:FlxSpriteExt;

var aurora:FlxSpriteExt;
var aurora_fx:FlxSpriteExt;

var stars:FlxSpriteExt;
var stars_fx:FlxSpriteExt;

var words_x:Int = 64;
var words_width:Int = 1060 - 64;
Expand Down Expand Up @@ -44,11 +48,29 @@ class Credits extends FlxTypedGroupExt<FlxSprite>
FlxG.state.add(this);

aurora = new FlxSpriteExt(perch.x, perch.y);
aurora_fx = new FlxSpriteExt(perch.x, perch.y);

aurora_fx.alpha = 0.25;

stars = new FlxSpriteExt(perch.x, perch.y);
stars_fx = new FlxSpriteExt(perch.x, perch.y);

stars.visible = false;

mountains = new FlxSpriteExt(perch.x, perch.y);

aurora.loadAllFromAnimationSet("pinnacle-4-aurora");
aurora_fx.loadAllFromAnimationSet("pinnacle-4-aurora-fx");

stars.loadAllFromAnimationSet("pinnacle-3-stars");
stars_fx.loadAllFromAnimationSet("pinnacle-3-stars-fx");

aurora_fx.scale.set(2, 2);
stars_fx.scale.set(2, 2);

stars_fx.updateHitbox();
aurora_fx.updateHitbox();

mountains.loadAllFromAnimationSet("pinnacle-2-mountains");

make_words();
Expand Down Expand Up @@ -100,7 +122,9 @@ class Credits extends FlxTypedGroupExt<FlxSprite>
members = [];

members.push(aurora);
members.push(aurora_fx);
members.push(stars);
members.push(stars_fx);

for (member in fireworks)
members.push(member);
Expand Down

0 comments on commit 7fcac41

Please sign in to comment.