|
|
|
@ -12,30 +12,32 @@ struct IngameView: View {
|
|
|
|
|
private let scene: GameScene
|
|
|
|
|
|
|
|
|
|
var body: some View {
|
|
|
|
|
HStack {
|
|
|
|
|
PlayerView(is_local: true)
|
|
|
|
|
Spacer()
|
|
|
|
|
PlayerView(is_local: false)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Spacer()
|
|
|
|
|
|
|
|
|
|
VStack(alignment: .center) {
|
|
|
|
|
VStack {
|
|
|
|
|
HStack {
|
|
|
|
|
PlayerView(is_local: true)
|
|
|
|
|
Spacer()
|
|
|
|
|
PlayerView(is_local: false)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Spacer()
|
|
|
|
|
|
|
|
|
|
SpriteView(scene: self.scene).scaledToFit()
|
|
|
|
|
VStack(alignment: .center) {
|
|
|
|
|
SpriteView(scene: self.scene)
|
|
|
|
|
.aspectRatio(
|
|
|
|
|
self.scene.size.width / self.scene.size.height,
|
|
|
|
|
contentMode: .fit
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Spacer()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Spacer()
|
|
|
|
|
|
|
|
|
|
// Button("", systemImage: "globe") {
|
|
|
|
|
|
|
|
|
|
// Button("", systemImage: "globe") {
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
let current = "???"
|
|
|
|
|
Text("inGame.currentRules \(current)")
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
let current = "???"
|
|
|
|
|
Text("inGame.currentRules \(current)")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
init(settings: NewGameVM, player1: PlayerSettingsVM, player2: PlayerSettingsVM) {
|
|
|
|
|