музыка и фиксы

This commit is contained in:
2023-01-16 19:13:47 +07:00
parent 67a84b9fe6
commit 37b21b4a8c
7 changed files with 42 additions and 10 deletions
+2 -4
View File
@@ -3,12 +3,10 @@ import pygame as pg
class Book: # Окно с необходимой информацией
@staticmethod
def info(screen):
def info(screen, event):
pg.draw.rect(screen, (38, 33, 55), (85, 0, 520, 500))
pg.draw.rect(screen, (255, 255, 255), (100, 90, 495, 280), 1)
texts = ['День ***', 'Сегодня произошло следующее:',
'***'] # Если не вмещаются события, то в конце можно написать и т.д.
texts = ['День ***', 'Сегодня произошло следующее:', f"{event['name']}\n{event['description']}"]
sizes = [60, 30, 30]
coords = [(260, 30), (110, 100), (110, 150)]
for i in range(len(texts)):