public static void LoadAssets() { var anim = new AnimatorData("gfx/bat", 24, 24); anim.Add("idle", AnimatorMode.Loop, 0.5f, 0, 1); anim.Add("attack", AnimatorMode.OneShot, 0.25f, 2, 3); Asset.AddAnimatorData("bat", anim); }
public static void LoadAssets() { var anim = new AnimatorData("entities_16_16"); anim.Add("KeyA", 68); anim.Add("KeyB", 72); anim.Add("KeyC", 76); Asset.AddAnimatorData("ui_item", anim); }
public static void LoadAssets() { Asset.AddPixelMaskSet("tileset", "mask/tileset", Global.TileSize, Global.TileSize); var anim = new AnimatorData("gfx/game/tileset", 16, 16); anim.Add("Left", AnimatorMode.Loop, 0.2f, 224, 225, 226, 227); anim.Add("Right", AnimatorMode.Loop, 0.2f, 240, 241, 242, 243); anim.Add("Up", AnimatorMode.Loop, 0.2f, 192, 193, 194, 195); anim.Add("Down", AnimatorMode.Loop, 0.2f, 208, 209, 210, 211); Asset.AddAnimatorData("torch", anim); }
public static void LoadAssets() { var anim = new AnimatorData("entities_16_16"); anim.Add("idle", AnimatorMode.Loop, 0.2f, 240, 241, 242, 243, 244, 245, 246, 247); Asset.AddAnimatorData("projectile", anim); }