diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/BoardAppState.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/BoardAppState.java index 8774ef0..db7908e 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/BoardAppState.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/BoardAppState.java @@ -95,7 +95,7 @@ public class BoardAppState extends MonopolyAppState { sceneNode.detachAllChildren(); setupScene(); if (bobTheBuilder == null) { - bobTheBuilder = new BobTheBuilder(getApp(), getApp().getRootNode()); + bobTheBuilder = new BobTheBuilder(getApp(), sceneNode); System.out.println("LISTENER IS REGISTEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD"); getGameLogic().addListener(bobTheBuilder); } @@ -120,7 +120,7 @@ public class BoardAppState extends MonopolyAppState { final float x = mx - cos; final float y = my - sin; final Camera camera = getApp().getCamera(); - camera.setLocation(new Vector3f(x, ABOVE_SEA_LEVEL, y)); + camera.setLocation(new Vector3f(0,40,0)); camera.lookAt(new Vector3f(0,0, 0), Vector3f.UNIT_Y); camera.update(); @@ -210,6 +210,24 @@ public class BoardAppState extends MonopolyAppState { seaGeo.setMaterial(seaMat); seaGeo.setShadowMode(ShadowMode.CastAndReceive); TangentBinormalGenerator.generate(seaGeo); + sceneNode.attachChild(createCardDeck()); sceneNode.attachChild(seaGeo); } + + private Node createCardDeck() { + Node cardDeck = new Node("cardDeck"); + Spatial card = getApp().getAssetManager().loadModel("models/Kartendecks/Ereigniskarten_Deck.j3o"); + card.setLocalTranslation(5.5f, 0, 2.7f); + card.setLocalScale(4.1f); + card.setLocalRotation(new Quaternion().fromAngleAxis(FastMath.QUARTER_PI, Vector3f.UNIT_Y)); + + Spatial card2 = getApp().getAssetManager().loadModel("models/Kartendecks/Gemeinschaftskarten_Deck.j3o"); + card2.setLocalTranslation(-1.4f, 0, -3.8f); + card2.setLocalScale(4.1f); + card2.setLocalRotation(new Quaternion().fromAngleAxis(FastMath.QUARTER_PI , Vector3f.UNIT_Y)); + + cardDeck.attachChild(card); + cardDeck.attachChild(card2); + return cardDeck; + } } \ No newline at end of file