Refactored to have assets use self reflection to identify with certain extensions

This commit is contained in:
lieght
2025-10-01 00:12:38 +02:00
parent 21763851e8
commit 6cd2c083b7
6 changed files with 95 additions and 44 deletions

View File

@@ -16,7 +16,9 @@ import java.nio.file.NotDirectoryException;
public class Main {
static void main(String[] args) throws IOException, UnsupportedAudioFileException, LineUnavailableException, InterruptedException {
AssetManager.loadAssets(new AssetLoader("app/src/main/resources/assets"));
AssetLoader.initialize("app/src/main/resources/assets");
AssetManager.loadAssets(AssetLoader.getInstance());
var b = new NetworkingClientManager();
var c = new SoundManager();