animate atlas stuff todo

This commit is contained in:
Yoshman29
2022-11-07 13:34:39 +01:00
parent 8a3511e566
commit 890602c7d0
14 changed files with 2164 additions and 0 deletions
+6
View File
@@ -1,5 +1,6 @@
package funkin.system;
import animateatlas.AtlasFrameMaker;
import haxe.Json;
import funkin.menus.StoryMenuState.WeekData;
import flixel.graphics.frames.FlxAtlasFrames;
@@ -268,6 +269,11 @@ class CoolUtil
public static function loadFrames(path:String, Unique:Bool = false, Key:String = null):FlxFramesCollection {
var noExt = Path.withoutExtension(path);
if (Assets.exists('$noExt/Animation.json')
&& Assets.exists('$noExt/spritemap.json')
&& Assets.exists('$noExt/spritemap.png')) {
// TODO: Credit Smokey555!!
return AtlasFrameMaker.construct(noExt);
if (Assets.exists('$noExt.xml')) {
return Paths.getSparrowAtlasAlt(noExt);
} else if (Assets.exists('$noExt.txt')) {
+2
View File
@@ -32,6 +32,8 @@ import funkin.mods.ModsFolder;
class Main extends Sprite
{
// TODO: CREDIT SMOKEY FOR ATLAS STUFF!!
var gameWidth:Int = 1280; // Width of the game in pixels (might be less / more in actual pixels depending on your zoom).
var gameHeight:Int = 720; // Height of the game in pixels (might be less / more in actual pixels depending on your zoom).
var initialState:Class<FlxState> = TitleState; // The FlxState the game starts with.