29 const auto group = registry.group<
components::Animated>(entt::get<components::Sprite>, entt::exclude<flags::Disabled>);
30 for (
auto&& [entity, animated, sprite] : group.each())
32 if (!animated.m_paused && animated.m_anim !=
nullptr)
34 animated.m_duration += (GALAXY_DT * animated.m_anim->m_speed);
36 if (animated.m_duration >= animated.m_anim->current().m_duration)
38 animated.m_duration = 0.0;
39 animated.m_anim->next();
41 sprite.set_clip(animated.m_anim->current().m_bounds);