Animaciones precacheadas

This commit is contained in:
2022-10-27 18:42:07 +02:00
parent 35b4d19188
commit 1934f790f7
9 changed files with 20 additions and 15 deletions

View File

@@ -181,6 +181,8 @@ bool Director::saveConfig()
// Carga los recursos
void Director::loadResources(section_t section)
{
std::cout << "** LOAD RESOURCES" << std::endl;
if (section.name == SECTION_PROG_LOGO)
{
std::vector<std::string> textureList;
@@ -339,6 +341,8 @@ void Director::loadResources(section_t section)
resource->loadAnimations(animationList);
}
std::cout << "** RESOURCES LOADED" << std::endl;
}
// Asigna variables a partir de dos cadenas