Compare commits
No commits in common. "01d91e68c796f6b842c035129741c2b5e31e1d1b" and "8dd5ad2dc64433e7a4ad0a6db28347aefe4a5030" have entirely different histories.
01d91e68c7
...
8dd5ad2dc6
2 changed files with 10 additions and 11 deletions
|
|
@ -293,7 +293,6 @@ class Room(GameObjects):
|
||||||
return walls
|
return walls
|
||||||
|
|
||||||
def createDoors(self, WIDTH):
|
def createDoors(self, WIDTH):
|
||||||
if not self.type == 'boss':
|
|
||||||
if len(self.exits) == 1:
|
if len(self.exits) == 1:
|
||||||
self.doors.append(Door(f'door{self.id}', self.exits[0][1], random.randint(64, round(WIDTH * 0.75)), 4, self.exits[0][0]))
|
self.doors.append(Door(f'door{self.id}', self.exits[0][1], random.randint(64, round(WIDTH * 0.75)), 4, self.exits[0][0]))
|
||||||
elif len(self.exits) == 2:
|
elif len(self.exits) == 2:
|
||||||
|
|
|
||||||
2
main.py
2
main.py
|
|
@ -290,7 +290,7 @@ def options(screen, clock, running, background, isblack, WIDTH, HEIGHT):
|
||||||
|
|
||||||
def menu(screen, clock, running, background, isblack, WIDTH, HEIGHT):
|
def menu(screen, clock, running, background, isblack, WIDTH, HEIGHT):
|
||||||
objects = []
|
objects = []
|
||||||
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, 160, 64, 'textbox.png', 'medieval', 48, "Play", play, 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, "Options", uwu))
|
||||||
objects.append(Button(WIDTH / 2 - 80, HEIGHT / 2 + 72, 160, 64, 'textbox.png', 'medieval', 48, "Exit game", quitGame))
|
objects.append(Button(WIDTH / 2 - 80, HEIGHT / 2 + 72, 160, 64, 'textbox.png', 'medieval', 48, "Exit game", quitGame))
|
||||||
while running:
|
while running:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue