-
Notifications
You must be signed in to change notification settings - Fork 0
/
credits.py
40 lines (33 loc) · 1.08 KB
/
credits.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import pygame
from cutscene import Cutscene
import sys
from settings import *
class Credits(Cutscene):
def __init__(self):
super().__init__()
texts = [
"Made by Binder & Marcelo",
"Programming: Binder & Marcelo",
"The Amazing Text box System: Binder",
"The ugly part of the code: Marcelo",
"Art: Marcos Sketches & Catharina Sketches",
"Npcs: Catharina Sketches",
"Icons: Marcos Sketches",
"Daniel Npc: Tango lanches",
"Made with 1276 lines of code",
"21y bday boy: Arthur pitman",
]
for i in range(len(texts)):
self.create_text(texts[i], WIDTH / 2, HEIGHT + i * (HEIGHT) / 2, "white")
self.create_text(
"THE END", WIDTH / 2, HEIGHT + (len(texts) + 2) * (HEIGHT) / 2, "white"
)
self.y = 0
def update(self):
for text in self.texts:
text.y -= 2
self.y += 1
if self.y > 2600:
self.is_running = False
pygame.quit()
sys.exit()