Development #34
@@ -149,7 +149,7 @@ else if(boardSelect != null) {
|
||||
if (name.equals("Right")) {
|
||||
isRotateRight = !isRotateRight;
|
||||
}
|
||||
if(name.equals("Test") &&isPressed){
|
||||
if(name.equals("Test2") &&isPressed){
|
||||
if(app.getView() instanceof GameView gameView){
|
||||
|
||||
if(p == null) {
|
||||
|
||||
@@ -128,7 +128,7 @@ public void simpleInitApp() {
|
||||
gameView = new GameView(this);
|
||||
ceremonyView = new CeremonyView(this);
|
||||
|
||||
enter(MdgaState.GAME);
|
||||
enter(MdgaState.MAIN);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package pp.mdga.client;
|
||||
|
||||
import pp.mdga.client.acoustic.MdgaSound;
|
||||
import pp.mdga.client.board.BoardHandler;
|
||||
import pp.mdga.client.gui.GuiHandler;
|
||||
import pp.mdga.client.view.CeremonyView;
|
||||
@@ -91,6 +92,7 @@ private void handleGame(Notification notification) {
|
||||
} else if (notification instanceof ActivePlayerNotification n) {
|
||||
gameView.getGuiHandler().setActivePlayer(n.getColor());
|
||||
boardHandler.showDice(n.getColor());
|
||||
app.getAcousticHandler().playSound(MdgaSound.UI90);
|
||||
} else if (notification instanceof CeremonyNotification ceremonyNotification) {
|
||||
app.enter(MdgaState.CEREMONY);
|
||||
CeremonyView ceremonyView = (CeremonyView) app.getView();
|
||||
|
||||
@@ -123,6 +123,9 @@ public void playSound(MdgaSound sound) {
|
||||
case BONUS:
|
||||
assets.add(new SoundAssetDelayVolume(SoundAsset.BONUS, 1.0f, 0.0f));
|
||||
break;
|
||||
case UI90:
|
||||
assets.add(new SoundAssetDelayVolume(SoundAsset.UI90, 1.0f, 0.0f));
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -35,4 +35,5 @@ public enum MdgaSound {
|
||||
EXPLOSION,
|
||||
LOSE,
|
||||
BONUS,
|
||||
UI90,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user