Skip to content

Commit

Permalink
commit merge
Browse files Browse the repository at this point in the history
  • Loading branch information
kulesy committed Mar 4, 2021
1 parent cdf2bf1 commit 0338016
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,10 @@ def draw_text(self, text, size, x, y ):
text_rect.center = (x,y)
self.display.blit(text_surface,text_rect)

class Interface:
self.game = Game()


class Menu:
def __init__(self):
self.mid_w, self.mid_h = WIDTH / 2, HEIGHT / 2
Expand Down Expand Up @@ -393,7 +397,7 @@ def __init__(self):
Menu.__init__(self)
self.state = "Start"
self.startx, self.starty = self.mid_w, self.mid_h
self.exitx, self.exity = self.mid_w, self.mid_h + 30
self.exitx, self.exity = self.mid_w, self.mid_h + 50
self.cursor_rect.midtop = (self.startx + self.offset, self.starty + 10)

def display_menu(self):
Expand Down Expand Up @@ -430,7 +434,7 @@ def check_input(self):
game.game_reset()
game.game_loop()
if self.state == 'Exit':
pygame.quit()
pass
self.run_display = False

game = Game()
Expand Down

0 comments on commit 0338016

Please sign in to comment.