mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-29 11:06:00 -05:00
Moved can explosion animation to weekend1 library so it's preloaded.
This commit is contained in:
parent
dd64091a99
commit
7f18eb62d7
4 changed files with 12 additions and 1 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -8,3 +8,8 @@ RECOVER_*.fla
|
||||||
shitAudio/
|
shitAudio/
|
||||||
.build_time
|
.build_time
|
||||||
.swp
|
.swp
|
||||||
|
|
||||||
|
# Exclude JS stuff
|
||||||
|
node_modules/
|
||||||
|
package.json
|
||||||
|
package-lock.json
|
||||||
|
|
2
assets
2
assets
|
@ -1 +1 @@
|
||||||
Subproject commit 1b12b6c6666af6c84addf5aa0795546aa0d04185
|
Subproject commit 3d8cfbb89527d5fbd52a1544e0724a6f37183178
|
|
@ -37,6 +37,11 @@ class FlxAtlasSprite extends FlxAnimate
|
||||||
{
|
{
|
||||||
if (settings == null) settings = SETTINGS;
|
if (settings == null) settings = SETTINGS;
|
||||||
|
|
||||||
|
if (path == null)
|
||||||
|
{
|
||||||
|
throw 'Null path specified for FlxAtlasSprite!';
|
||||||
|
}
|
||||||
|
|
||||||
super(x, y, path, settings);
|
super(x, y, path, settings);
|
||||||
|
|
||||||
if (this.anim.curInstance == null)
|
if (this.anim.curInstance == null)
|
||||||
|
|
|
@ -332,6 +332,7 @@ class LoadingState extends MusicBeatSubState
|
||||||
// Since FlxGraphic tells OpenFL to not cache it, we have to do it manually.
|
// Since FlxGraphic tells OpenFL to not cache it, we have to do it manually.
|
||||||
if (path.endsWith('spritemap1.png'))
|
if (path.endsWith('spritemap1.png'))
|
||||||
{
|
{
|
||||||
|
trace('Preloading FlxAnimate asset: ${path}');
|
||||||
openfl.Assets.getBitmapData(path, true);
|
openfl.Assets.getBitmapData(path, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue