Converted Music and deleted unused modules #42
@@ -8,7 +8,10 @@
|
|||||||
import pp.mdga.client.dialog.JoinDialog;
|
import pp.mdga.client.dialog.JoinDialog;
|
||||||
import pp.mdga.client.view.*;
|
import pp.mdga.client.view.*;
|
||||||
|
|
||||||
|
import javax.imageio.ImageIO;
|
||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.IOException;
|
||||||
import java.util.concurrent.ExecutorService;
|
import java.util.concurrent.ExecutorService;
|
||||||
import java.util.concurrent.Executors;
|
import java.util.concurrent.Executors;
|
||||||
import java.util.prefs.Preferences;
|
import java.util.prefs.Preferences;
|
||||||
@@ -132,6 +135,12 @@ public static void main(String[] args) {
|
|||||||
app.setPauseOnLostFocus(false);
|
app.setPauseOnLostFocus(false);
|
||||||
app.setDisplayStatView(false);
|
app.setDisplayStatView(false);
|
||||||
|
|
||||||
|
try {
|
||||||
|
settings.setIcons(new Image[]{ImageIO.read(new File("src/main/resources/Images/icon/icon128.png"))});
|
||||||
|
} catch (IOException e) {
|
||||||
|
System.out.println(e.getMessage());
|
||||||
|
}
|
||||||
|
|
||||||
app.start();
|
app.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -231,12 +231,10 @@ private void handleGame(Notification notification) {
|
|||||||
if (n.getColor() == ownColor) guiHandler.playCardOwn(n.getCard());
|
if (n.getColor() == ownColor) guiHandler.playCardOwn(n.getCard());
|
||||||
else guiHandler.playCardEnemy(n.getColor(), n.getCard());
|
else guiHandler.playCardEnemy(n.getColor(), n.getCard());
|
||||||
|
|
||||||
new Timer().schedule(new TimerTask() {
|
app.getTimerManager().addTask(
|
||||||
@Override
|
2.2f * MdgaApp.DEBUG_MULTIPLIER,
|
||||||
public void run() {
|
app.getModelSynchronize()::animationEnd
|
||||||
app.getModelSynchronize().animationEnd();
|
);
|
||||||
}
|
|
||||||
}, 2200 * MdgaApp.DEBUG_MULTIPLIER);
|
|
||||||
} else if (notification instanceof PlayerInGameNotification n) {
|
} else if (notification instanceof PlayerInGameNotification n) {
|
||||||
boardHandler.addPlayer(n.getColor(), n.getPiecesList());
|
boardHandler.addPlayer(n.getColor(), n.getPiecesList());
|
||||||
guiHandler.addPlayer(n.getColor(), n.getName());
|
guiHandler.addPlayer(n.getColor(), n.getName());
|
||||||
|
|||||||
@@ -189,11 +189,6 @@ private void createEffect(Vector3f shootPos,
|
|||||||
explosionEmitter.setParticlesPerSec(0);
|
explosionEmitter.setParticlesPerSec(0);
|
||||||
explosionEmitter.emitAllParticles();
|
explosionEmitter.emitAllParticles();
|
||||||
app.getRootNode().attachChild(explosionEmitter);
|
app.getRootNode().attachChild(explosionEmitter);
|
||||||
new Timer().schedule(new TimerTask() {
|
app.getTimerManager().addTask(1, ()->app.getRootNode().detachChild(explosionEmitter));
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
app.getRootNode().detachChild(explosionEmitter);
|
|
||||||
}
|
|
||||||
}, 1000);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -225,7 +225,7 @@ private Spatial createModel(Asset asset, Vector3f pos, float rot) {
|
|||||||
* @param y The y-coordinate on the grid
|
* @param y The y-coordinate on the grid
|
||||||
* @return The corresponding world position
|
* @return The corresponding world position
|
||||||
*/
|
*/
|
||||||
private static Vector3f gridToWorld(int x, int y) {
|
public static Vector3f gridToWorld(int x, int y) {
|
||||||
return new Vector3f(GRID_SIZE * x, GRID_SIZE * y, GRID_ELEVATION);
|
return new Vector3f(GRID_SIZE * x, GRID_SIZE * y, GRID_ELEVATION);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
BIN
Projekte/mdga/client/src/main/resources/Images/icon/icon128.png
Normal file
BIN
Projekte/mdga/client/src/main/resources/Images/icon/icon128.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
Reference in New Issue
Block a user