From 0b9c8f1581cbb93a4b45c8c5a3a30fe2a7be868b Mon Sep 17 00:00:00 2001 From: Nathan Date: Tue, 4 Jun 2024 15:53:44 +0200 Subject: [PATCH 1/3] =?UTF-8?q?=E2=9C=A8=20Add:=20navigation=20for=20selec?= =?UTF-8?q?tPlayerView?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DouShouQi_App/DouShouQi_App/Views/Player/SelectPlayerView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DouShouQi_App/DouShouQi_App/Views/Player/SelectPlayerView.swift b/DouShouQi_App/DouShouQi_App/Views/Player/SelectPlayerView.swift index 26b6bc3..66a868f 100644 --- a/DouShouQi_App/DouShouQi_App/Views/Player/SelectPlayerView.swift +++ b/DouShouQi_App/DouShouQi_App/Views/Player/SelectPlayerView.swift @@ -21,7 +21,7 @@ struct SelectPlayerView: View { HStack { VStack(alignment: .trailing) { - MainMenuButton(text: "Start", destination: ContentView(), sound: "TitleScreenButtonSound", horizontalAlignment: .trailing, topLeftCorner: 10, bottomLeftCorner: 10) + MainMenuButton(text: "Start", destination: GameView(), sound: "TitleScreenButtonSound", horizontalAlignment: .trailing, topLeftCorner: 10, bottomLeftCorner: 10) MainMenuButton(text: "Settings", destination: ContentView(), sound: "TitleScreenButtonSound", horizontalAlignment: .trailing, topLeftCorner: 10, bottomLeftCorner: 10) } } From 4e4b92843160396c09e907671b9e2ab89481441f Mon Sep 17 00:00:00 2001 From: Nathan Date: Tue, 4 Jun 2024 15:54:30 +0200 Subject: [PATCH 2/3] =?UTF-8?q?=E2=9C=A8=20Add:=20navigation=20for=20selec?= =?UTF-8?q?tPlayer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DouShouQi_App/DouShouQi_App/Views/Menu/MainMenuView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DouShouQi_App/DouShouQi_App/Views/Menu/MainMenuView.swift b/DouShouQi_App/DouShouQi_App/Views/Menu/MainMenuView.swift index e23095d..1738496 100644 --- a/DouShouQi_App/DouShouQi_App/Views/Menu/MainMenuView.swift +++ b/DouShouQi_App/DouShouQi_App/Views/Menu/MainMenuView.swift @@ -36,7 +36,7 @@ struct MainMenuView: View { VStack { HStack { VStack(spacing: 25) { - MainMenuButton(text: "Play", destination: ScoreBoardView(), sound: "TitleScreenButtonSound", topRightCorner: 10, bottomRightCorner: 10) + MainMenuButton(text: "Play", destination: SelectPlayerView(), sound: "TitleScreenButtonSound", topRightCorner: 10, bottomRightCorner: 10) MainMenuButton(text: "Historique", destination: HistoricView(), sound: "TitleScreenButtonSound", topRightCorner: 10, bottomRightCorner: 10) MainMenuButton(text: "Best Scores", destination: ScoreBoardView(), sound: "TitleScreenButtonSound", topRightCorner: 10, bottomRightCorner: 10) MainMenuButton(text: "Players", destination: PlayersView(), sound: "TitleScreenButtonSound", topRightCorner: 10, bottomRightCorner: 10) From ff2f0be54500ff37c4480c337d0ea6482032c006 Mon Sep 17 00:00:00 2001 From: Nathan Date: Tue, 4 Jun 2024 15:56:36 +0200 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=94=A5=20Remove:=20unused=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DouShouQi_App/DouShouQi_App/Components/Scene/GameScene.swift | 1 - 1 file changed, 1 deletion(-) diff --git a/DouShouQi_App/DouShouQi_App/Components/Scene/GameScene.swift b/DouShouQi_App/DouShouQi_App/Components/Scene/GameScene.swift index 474c9a5..eff6f22 100644 --- a/DouShouQi_App/DouShouQi_App/Components/Scene/GameScene.swift +++ b/DouShouQi_App/DouShouQi_App/Components/Scene/GameScene.swift @@ -54,7 +54,6 @@ class GameScene : SKScene { } func initializeBoard(_ board: Board) { - for (lineIndex, currentLine) in game.board.grid.enumerated() { for (cellIndex, currentCell) in currentLine.enumerated() { if let piece = currentCell.piece {