2022-06-07 21:36:31 +02:00
|
|
|
import pygame
|
|
|
|
|
2022-03-11 20:00:42 +01:00
|
|
|
from ui.screens.screen import Screen
|
2022-06-07 22:36:13 +02:00
|
|
|
from common.colors import BLACK
|
2022-06-07 21:36:31 +02:00
|
|
|
from common.helpers import draw_text
|
2022-03-11 20:00:42 +01:00
|
|
|
|
|
|
|
class Credits(Screen):
|
2022-06-07 21:36:31 +02:00
|
|
|
|
2022-03-11 20:00:42 +01:00
|
|
|
def __init__(self, screen, clock):
|
|
|
|
super().__init__('credits', screen, clock)
|
2022-06-07 21:36:31 +02:00
|
|
|
|
|
|
|
def display_screen(self):
|
|
|
|
running = True
|
|
|
|
while running:
|
2022-06-07 22:36:13 +02:00
|
|
|
self.screen.fill((252, 164, 12))
|
|
|
|
draw_text('Twórcy :', BLACK, self.screen, 520, 150)
|
|
|
|
draw_text('Angelika Iskra', BLACK, self.screen, 520, 250)
|
|
|
|
draw_text('Dawid Korzępa', BLACK, self.screen, 520, 300)
|
|
|
|
draw_text('Juliusz Sadowski', BLACK, self.screen, 520, 350)
|
|
|
|
draw_text('Aleksandra Muczyńska', BLACK, self.screen, 520, 400)
|
|
|
|
draw_text('Jerzy Tomaszewski', BLACK, self.screen, 520, 450)
|
|
|
|
draw_text('Mateusz Konofał', BLACK, self.screen, 520, 500)
|
2022-06-07 21:36:31 +02:00
|
|
|
for event in pygame.event.get():
|
|
|
|
if event.type == pygame.QUIT:
|
|
|
|
running = False
|
|
|
|
if event.type == pygame.KEYDOWN:
|
|
|
|
if event.key == pygame.K_ESCAPE:
|
|
|
|
running = False
|
|
|
|
pygame.display.update()
|
|
|
|
self.clock.tick(60)
|
|
|
|
|