Moved can explosion animation to weekend1 library so it's preloaded.

This commit is contained in:
EliteMasterEric 2024-04-20 23:04:08 -04:00
parent dd64091a99
commit 7f18eb62d7
4 changed files with 12 additions and 1 deletions

5
.gitignore vendored
View file

@ -8,3 +8,8 @@ RECOVER_*.fla
shitAudio/
.build_time
.swp
# Exclude JS stuff
node_modules/
package.json
package-lock.json

2
assets

@ -1 +1 @@
Subproject commit 1b12b6c6666af6c84addf5aa0795546aa0d04185
Subproject commit 3d8cfbb89527d5fbd52a1544e0724a6f37183178

View file

@ -37,6 +37,11 @@ class FlxAtlasSprite extends FlxAnimate
{
if (settings == null) settings = SETTINGS;
if (path == null)
{
throw 'Null path specified for FlxAtlasSprite!';
}
super(x, y, path, settings);
if (this.anim.curInstance == null)

View file

@ -332,6 +332,7 @@ class LoadingState extends MusicBeatSubState
// Since FlxGraphic tells OpenFL to not cache it, we have to do it manually.
if (path.endsWith('spritemap1.png'))
{
trace('Preloading FlxAnimate asset: ${path}');
openfl.Assets.getBitmapData(path, true);
}
}