Browse Source

Merge branch 'main' into double-talk

othello
みてるぞ 7 months ago
parent
commit
1f23e02fad
2 changed files with 4 additions and 3 deletions
  1. +1
    -1
      common_const.py
  2. +3
    -2
      main.py

+ 1
- 1
common_const.py View File

@@ -1,7 +1,7 @@
from pydantic import BaseModel


class Window (BaseModel, frozen = True):
class CWindow (BaseModel, frozen = True):
WIDTH: int = 1024
HEIGHT: int = 768


+ 3
- 2
main.py View File

@@ -37,11 +37,12 @@ class Main:

# ウィンドゥの初期化
pygame.init ()
screen: pygame.Surface = pygame.display.set_mode ((Window.WIDTH, Window.HEIGHT))
screen: pygame.Surface = pygame.display.set_mode (
(CWindow.WIDTH, CWindow.HEIGHT))

# 吹き出し
balloon = pygame.transform.scale (pygame.image.load ('talking.png'),
(Window.WIDTH, 384))
(CWindow.WIDTH, 384))
if goatoh_mode:
balloon = pygame.transform.flip (balloon, False, True)



Loading…
Cancel
Save