Fixed unknown names, Assetmanager now has initializeloader

This commit is contained in:
lieght
2025-09-30 23:17:32 +02:00
parent cf9c281992
commit d78fd1b606
14 changed files with 98 additions and 136 deletions

View File

@@ -1,7 +1,8 @@
package org.toop;
import org.toop.app.gui.LocalServerSelector;
import org.toop.framework.assets.AssetManager;
import org.toop.framework.asset.AssetLoader;
import org.toop.framework.asset.AssetManager;
import org.toop.framework.audio.SoundManager;
import org.toop.framework.audio.events.AudioEvents;
import org.toop.framework.eventbus.EventFlow;
@@ -15,9 +16,10 @@ import java.nio.file.NotDirectoryException;
public class Main {
static void main(String[] args) throws IOException, UnsupportedAudioFileException, LineUnavailableException, InterruptedException {
var a = new AssetManager(new File("app/src/main/resources/assets"));
AssetManager.initializeLoader(new File("app/src/main/resources/assets"));
var b = new NetworkingClientManager();
var c = new SoundManager(a);
var c = new SoundManager();
new EventFlow().addPostEvent(new AudioEvents.PlayAudio("mainmenu.wav", true)).asyncPostEvent();
new EventFlow().addPostEvent(new AudioEvents.PlayAudio("sadtrombone.wav", true)).asyncPostEvent();
@@ -31,5 +33,6 @@ public class Main {
javax.swing.SwingUtilities.invokeLater(LocalServerSelector::new);
}
private static void initSystems() throws NetworkingInitializationException, NotDirectoryException {}
private static void initSystems() throws NetworkingInitializationException, NotDirectoryException {
}
}