定数クラス追加

このコミットが含まれているのは:
2024-04-04 08:33:30 +09:00
コミット e705e059e2
2個のファイルの変更10行の追加2行の削除
+7
ファイルの表示
@@ -0,0 +1,7 @@
from pydantic import BaseModel
class Window (BaseModel, frozen = True):
WIDTH: int = 1024
HEIGHT: int = 768
+3 -2
ファイルの表示
@@ -12,6 +12,7 @@ from playsound import playsound
from pygame.locals import *
from aques import Aques
from common_const import *
from common_module import CommonModule
from mode import Mode
from talk import Talk
@@ -35,9 +36,9 @@ class Main:
print (mode)
pygame.init ()
screen: pygame.Surface = pygame.display.set_mode ((1024, 768))
screen: pygame.Surface = pygame.display.set_mode ((Window.WIDTH, Window.HEIGHT))
balloon = pygame.transform.scale (pygame.image.load ('talking.png'),
(1024, 384))
(Window.WIDTH, 384))
if goatoh_mode:
balloon = pygame.transform.flip (balloon, False, True)
pygame.mixer.init (frequency = 44100)