From 57ae0992c14e3a9ef974edd83958e34836e77700 Mon Sep 17 00:00:00 2001 From: miteruzo Date: Fri, 6 Dec 2024 01:45:11 +0900 Subject: [PATCH] =?UTF-8?q?#31=20=E4=BD=9C=E3=82=8A=E3=81=8B=E3=81=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test.py | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 test.py diff --git a/test.py b/test.py new file mode 100644 index 0000000..a5e578c --- /dev/null +++ b/test.py @@ -0,0 +1,50 @@ +from __future__ import annotations + +import pygame + + +def main ( +) -> None: + pygame.init () + game = Game () + while True: + deerjika = Deerjika (game) + + +class Game: + def __init__ ( + self, + ): + self.screen = pygame.display.set_mode ((CWindow.WIDTH, CWindow.HEIGHT)) + self.clock = pygame.time.Clock () + + +class Deerjika: + def __init__ ( + self, + game: Game, + pattern: DeerjikaPattern = DeerjikaPattern.NORMAL, + direction: Direction = Direction.LEFT, + ): + self.game = game + self.pattern = pattern + self.direction = direction + + +class DeerjikaPattern (Enum): + NORMAL = auto () + RELAXED = auto () + + +class Direction (Enum): + LEFT = auto () + RIGHT = auto () + + +class CWindow: + WIDTH = 1024 + HEIGHT = 768 + + +if __name__ == '__main__': + main ()