From d6e5665d3592d9ab86ae3027f647aaad00a0e26e Mon Sep 17 00:00:00 2001 From: Zaina Date: Tue, 27 Feb 2024 17:20:28 -0500 Subject: [PATCH 1/4] gui classes for main menu and playerselection --- gui/MainMenu.py | 0 gui/PlayerSelectionScreen.py | 0 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 gui/MainMenu.py create mode 100644 gui/PlayerSelectionScreen.py diff --git a/gui/MainMenu.py b/gui/MainMenu.py new file mode 100644 index 000000000..e69de29bb diff --git a/gui/PlayerSelectionScreen.py b/gui/PlayerSelectionScreen.py new file mode 100644 index 000000000..e69de29bb From 22cafacb290ba625a16133794bf7644311f43fe4 Mon Sep 17 00:00:00 2001 From: Zaina Date: Wed, 28 Feb 2024 17:01:43 -0500 Subject: [PATCH 2/4] all classes + methods for gui block --- gui/HandGestureInputControl.py | 12 ++++++++++++ gui/MainMenu.py | 22 ++++++++++++++++++++++ gui/MiniGameSelectionScreen.py | 17 +++++++++++++++++ gui/PlayerSelectionScreen.py | 13 +++++++++++++ 4 files changed, 64 insertions(+) create mode 100644 gui/HandGestureInputControl.py create mode 100644 gui/MiniGameSelectionScreen.py diff --git a/gui/HandGestureInputControl.py b/gui/HandGestureInputControl.py new file mode 100644 index 000000000..49b87ffed --- /dev/null +++ b/gui/HandGestureInputControl.py @@ -0,0 +1,12 @@ +import pygame + +class HandGestureInputControl: + def __init__(self): + self.gesture = "up" + + def captureGesture(void): + return + + def mapGestureToAction(gesture:str): + return + \ No newline at end of file diff --git a/gui/MainMenu.py b/gui/MainMenu.py index e69de29bb..421e4939f 100644 --- a/gui/MainMenu.py +++ b/gui/MainMenu.py @@ -0,0 +1,22 @@ +import pygame +class MainMenu: + + def __init__(self): + self.menuOptions = [2] + + + def displayMenu(): + return + + + def handleSelection(selection:str): + return selection + + + def navigateToSelectionScreen(void): + return + + def displaySettings(void): + return + + diff --git a/gui/MiniGameSelectionScreen.py b/gui/MiniGameSelectionScreen.py new file mode 100644 index 000000000..584bbf522 --- /dev/null +++ b/gui/MiniGameSelectionScreen.py @@ -0,0 +1,17 @@ +import pygame + +class MiniGameSelectionScreen: + def __init__(self,menuOptions:str[3]): + self.menuOptions = menuOptions + + def displayGames(void): + return + + def handleSelection(selection:str): + return + + def startSelectedGame(game:str): + return + + def exitGame(): + return \ No newline at end of file diff --git a/gui/PlayerSelectionScreen.py b/gui/PlayerSelectionScreen.py index e69de29bb..2a804f007 100644 --- a/gui/PlayerSelectionScreen.py +++ b/gui/PlayerSelectionScreen.py @@ -0,0 +1,13 @@ +import pygame + +class PlayerSelectionScreen: + + def __init__(self, numOfPlayers:int): + self.numOfPlayers = numOfPlayers + + def displayOptions(void): + return + + def handleSelection(selection:int): + return 2 + \ No newline at end of file From 3fe5306bf320b232ce45124bfcb63b82352081c4 Mon Sep 17 00:00:00 2001 From: Zaina Date: Wed, 28 Feb 2024 17:06:01 -0500 Subject: [PATCH 3/4] added gui controller class --- gui/GUIController | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 gui/GUIController diff --git a/gui/GUIController b/gui/GUIController new file mode 100644 index 000000000..3537eb070 --- /dev/null +++ b/gui/GUIController @@ -0,0 +1,17 @@ +import pygame + +class GUIControllerController: + + + def intialize(void): + return + + def update(void): + return + + def render(void): + return + + def shutdown(void): + return + From 80e9b12217c955d4b532733770a1b4d3e7c2ba82 Mon Sep 17 00:00:00 2001 From: Zaina Date: Wed, 28 Feb 2024 17:12:13 -0500 Subject: [PATCH 4/4] updated exitGame() --- gui/GUIController | 1 - gui/HandGestureInputControl.py | 2 ++ gui/MiniGameSelectionScreen.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gui/GUIController b/gui/GUIController index 3537eb070..8b4c94c01 100644 --- a/gui/GUIController +++ b/gui/GUIController @@ -2,7 +2,6 @@ import pygame class GUIControllerController: - def intialize(void): return diff --git a/gui/HandGestureInputControl.py b/gui/HandGestureInputControl.py index 49b87ffed..fd6db0ce3 100644 --- a/gui/HandGestureInputControl.py +++ b/gui/HandGestureInputControl.py @@ -9,4 +9,6 @@ def captureGesture(void): def mapGestureToAction(gesture:str): return + + def performClickAction(void):void \ No newline at end of file diff --git a/gui/MiniGameSelectionScreen.py b/gui/MiniGameSelectionScreen.py index 584bbf522..94d88890f 100644 --- a/gui/MiniGameSelectionScreen.py +++ b/gui/MiniGameSelectionScreen.py @@ -14,4 +14,4 @@ def startSelectedGame(game:str): return def exitGame(): - return \ No newline at end of file + pygame.quit() \ No newline at end of file