forked from s464965/WMICraft
credits screen
This commit is contained in:
parent
9afd1f366a
commit
29aea5bec4
@ -1,6 +1,31 @@
|
||||
import pygame
|
||||
|
||||
from ui.screens.screen import Screen
|
||||
from common.colors import WHITE
|
||||
from common.helpers import draw_text
|
||||
|
||||
|
||||
class Credits(Screen):
|
||||
|
||||
def __init__(self, screen, clock):
|
||||
super().__init__('credits', screen, clock)
|
||||
|
||||
def display_screen(self):
|
||||
running = True
|
||||
while running:
|
||||
self.screen.fill((0, 0, 0))
|
||||
draw_text('Angelika Iskra', WHITE, self.screen, 20, 50)
|
||||
draw_text('Dawid Korzępa', WHITE, self.screen, 20, 100)
|
||||
draw_text('Juliusz Sadowski', WHITE, self.screen, 20, 150)
|
||||
draw_text('Aleksandra Muczyńska', WHITE, self.screen, 20, 200)
|
||||
draw_text('Jerzy Tomaszewski', WHITE, self.screen, 20, 250)
|
||||
draw_text('Mateusz Konofał', WHITE, self.screen, 20, 300)
|
||||
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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user