Finally renamed animate2 to animation thus completing the refactor. There's still things to do to make the new animation actually work though.

This commit is contained in:
Zed A. Shaw 2026-02-24 11:36:57 -05:00
parent 83f62e3f45
commit 81a282d544
21 changed files with 83 additions and 339 deletions

View file

@ -1,5 +1,5 @@
#include "scene.hpp"
#include "animate2.hpp"
#include "animation.hpp"
#include "shaders.hpp"
#include <fmt/core.h>
#include "dbc.hpp"
@ -18,7 +18,7 @@ namespace scene {
bool flipped = config["flipped"];
// BUG: put the .json file to load as a default/optional arg
auto anim = animate2::load("./assets/animate2.json", sprite_name);
auto anim = animation::load("./assets/animation.json", sprite_name);
anim.play();
anim.transform.flipped = flipped;