Merge pull request 'changed to normal version again (no dev shortcuts)' (#84) from Spafi/game:main into Development
Reviewed-on: #84
This commit is contained in:
commit
e383c8afed
7 changed files with 6 additions and 6 deletions
BIN
art/images/box/bossbar_edge.png
Normal file
BIN
art/images/box/bossbar_edge.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 208 B |
BIN
art/images/box/bossbar_empty.png
Normal file
BIN
art/images/box/bossbar_empty.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 203 B |
BIN
art/images/box/bossbar_full.png
Normal file
BIN
art/images/box/bossbar_full.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 159 B |
BIN
audio/soundeffects/altefrauspeak.mp3
Normal file
BIN
audio/soundeffects/altefrauspeak.mp3
Normal file
Binary file not shown.
BIN
audio/soundeffects/dorfaeltesterspeak.mp3
Normal file
BIN
audio/soundeffects/dorfaeltesterspeak.mp3
Normal file
Binary file not shown.
|
|
@ -768,7 +768,7 @@ class Level(Label):
|
|||
super().draw(screen)
|
||||
|
||||
class Thinks(Label):
|
||||
def __init__(self, x, y, width, height, text, font='simple', font_size=15, font_color='#000000', sprite='thinks.png') -> None:
|
||||
def __init__(self, x, y, width, height, text, font='simple_round', font_size=12, font_color='#000000', sprite='thinks.png') -> None:
|
||||
super().__init__(x, y, width, height, text, font, font_size, font_color, sprite)
|
||||
self.scene = 0
|
||||
|
||||
|
|
@ -790,7 +790,7 @@ class Thinks(Label):
|
|||
if self.scene == 1:
|
||||
touches = pygame.sprite.spritecollideany(main, objects[2])
|
||||
if touches is not None and isinstance(touches, NPC):
|
||||
self.text = 'I should press \"f\"'
|
||||
self.text = 'I should press "f"'
|
||||
self.hidden = False
|
||||
else:
|
||||
self.hidden = False
|
||||
|
|
|
|||
6
main.py
6
main.py
|
|
@ -38,8 +38,8 @@ def genRooms(WIDTH, HEIGHT, type:str, objects:list):
|
|||
room_objects.append(Obstacle('river', 'water', 'art/images/background/river.png', True, random.randint(32, round(WIDTH * 0.75)), 32, WIDTH=96, HEIGHT=round(HEIGHT * 0.66)))
|
||||
room_backgrounds = [f'art/images/background/{type}{i}.png' for i in range(1)]
|
||||
rooms = [
|
||||
Room(type, 'normal', room_backgrounds[random.randint(0, 0)], [objects[0], objects[1], objects[2], objects[3], objects[4] + [room_objects[random.randint(0, 0)] for i in range(0, random.randint(0, 1))]], WIDTH - 64, HEIGHT - 64, j)
|
||||
for j in range(random.randint(1, 1))
|
||||
Room(type, 'normal', room_backgrounds[random.randint(0, 0)], [objects[0], objects[1], objects[2], objects[3], objects[4] + [room_objects[random.randint(0, 0)] for _ in range(0, random.randint(0, 1))]], WIDTH - 64, HEIGHT - 64, j)
|
||||
for j in range(random.randint(5, 10))
|
||||
]
|
||||
rooms.append(Room(type, 'boss', room_backgrounds[random.randint(0, 0)], [objects[0], objects[1], [], [], objects[4] + [room_objects[random.randint(0, 0)] for i in range(0, random.randint(0, 1))]], WIDTH - 64, HEIGHT - 64, 88))
|
||||
#rooms = [Room(type, 'boss', room_backgrounds[random.randint(0, 0)], [objects[0], objects[1], [], [], objects[4] + [room_objects[random.randint(0, 0)] for i in range(0, random.randint(0, 1))]], WIDTH - 64, HEIGHT - 64, 88)]
|
||||
|
|
@ -315,7 +315,7 @@ def options(screen, clock, running, background, isblack, WIDTH, HEIGHT):
|
|||
|
||||
def menu(screen, clock, running, background, isblack, WIDTH, HEIGHT):
|
||||
objects = []
|
||||
objects.append(Button(WIDTH / 2 - 80, HEIGHT / 2, 160, 64, 'textbox.png', 'medieval', 48, "Play", play, attributes=[screen, clock, running, background, isblack, WIDTH, HEIGHT]))
|
||||
objects.append(Button(WIDTH / 2 - 80, HEIGHT / 2, 160, 64, 'textbox.png', 'medieval', 48, "Play", village, attributes=[screen, clock, running, background, isblack, WIDTH, HEIGHT]))
|
||||
#objects.append(Button(WIDTH / 2 - 80, HEIGHT / 2 - 72, 160, 64, 'textbox.png', 'medieval', 48, "Options", uwu))
|
||||
objects.append(Button(WIDTH / 2 - 80, HEIGHT / 2 + 72, 160, 64, 'textbox.png', 'medieval', 48, "Exit game", quitGame))
|
||||
while running:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue