collision map

This commit is contained in:
2026-04-06 20:27:35 +02:00
parent ef04500a44
commit 98715ef3a7
36 changed files with 489 additions and 297 deletions

View File

@@ -40,7 +40,8 @@ namespace Resource {
// Constructor
Cache::Cache(LoadingMode mode)
: loading_mode_(mode), loading_text_(Screen::get()->getText()) {
: loading_mode_(mode),
loading_text_(Screen::get()->getText()) {
load();
}

View File

@@ -17,8 +17,8 @@ namespace Resource {
};
static void init(LoadingMode mode = LoadingMode::EAGER); // Inicialización singleton
static void destroy(); // Destrucción singleton
static auto get() -> Cache*; // Acceso al singleton
static void destroy(); // Destrucción singleton
static auto get() -> Cache*; // Acceso al singleton
auto getSound(const std::string& name) -> JA_Sound_t*; // Getters de recursos
auto getMusic(const std::string& name) -> JA_Music_t*;