Esempio n. 1
0
 def __init__(self, win, conn: Network=None):
     pygame.font.init()
     self.win = win
     self.conn = conn
     self.leader_board = LeaderBoard(50, 125)
     self.board = Board(310, 125)
     self.top_bar = TopBar(10, 10, 1280, 100)
     self.top_bar.change_round(1)
     self.players = []
     self.skip_button = TextButton(90, 800, 125, 50, (255, 255, 0), "Skip")
     self.bottom_bar = BottomBar(310, 880, self)
     self.chat = Chat(1050, 120)
     self.draw_color = (0, 0, 0)
Esempio n. 2
0
 def __init__(self, win, connection=None):
     pygame.font.init()
     self.connection = connection
     self.win = win
     self.leaderboard = Leaderboard(50, 125)
     self.board = Board(305, 125)
     self.top_bar = TopBar(10, 10, 1280, 100)
     self.top_bar.change_round(1)
     self.players = []
     self.skip_button = TextButton(85, 830, 125, 60, (255, 255, 0), "Skip")
     self.bottom_bar = BottomBar(305, 880, self)
     self.chat = Chat(1050, 125)
     self.draw_color = (0, 0, 0)
     self.drawing = False
Esempio n. 3
0
 def __init__(self, win, connection=None):
     pygame.font.init()
     self.connection = connection
     self.win = win
     self.leaderboard = Leaderboard(30, 95)
     self.board = Board(200, 100)
     self.top_bar = TopBar(10, 10, 1080, 80)
     self.bottom_bar = BottomBar(200, 714, self)
     self.top_bar.change_round(1)
     self.players = []
     self.chat = Chat(860, 95)
     self.skip_button = TextButton(70, 700, 100, 45, (255, 255, 0), "Skip")
     self.draw_color = (0, 0, 0)
     self.drawing = False
Esempio n. 4
0
    def __init__(self, win, connection):
        """
        :param win: Window
        :param connection: Connection object
        """
        self.win = win
        self.connection = connection

        self.is_drawing = False
        self.players = []
        self.draw_color = COLORS[1]
        self.game_ended = False
        self.drawer = "No one"

        self.top_bar = TopBar(20, 20, 1040, 80, self)
        self.leaderboard = Leaderboard(20, 120, 270, 60)
        self.board = Board(310, 120, 6)
        self.chat = Chat(810, 120, 250, 580, 30)
        self.bottom_bar = BottomBar(20, 620, 770, 80, self)
        self.person_is_drawing = PersonIsDrawing(310, 620, 480, 80)
Esempio n. 5
0
 def __init__(self):
     self.WIDTH = 1300
     self.HEIGHT = 1000
     self.win = pygame.display.set_mode((self.WIDTH, self.HEIGHT))
     self.leaderboard = Leaderboard(50, 125)
     self.board = Board(305, 125)
     self.top_bar = TopBar(10, 10, 1280, 100)
     self.top_bar.change_round(1)
     self.players = [
         Player("Tim"),
         Player("Joe"),
         Player("Bill"),
         Player("Jeff"),
         Player("TBob")
     ]
     self.skip_button = TextButton(85, 830, 125, 60, (255, 255, 0), "Skip")
     self.bottom_bar = BottomBar(305, 880, self)
     self.chat = Chat(1050, 125)
     self.draw_color = (0, 0, 0)
     for player in self.players:
         self.leaderboard.add_player(player)
Esempio n. 6
0
    def __init__(self):
        pygame.font.init()

        self.WIDTH = 1150
        self.HEIGHT = 800
        self.win = pygame.display.set_mode((self.WIDTH, self.HEIGHT))
        self.background = pygame.Surface((self.WIDTH, self.HEIGHT))
        self.manager = pygame_gui.UIManager((self.WIDTH, self.HEIGHT))

        self.lvl = 1
        self.player = Player("Joseph")
        self.enemy = Enemy()
        self.stats = Stats()
        # self.mod = Enemy_mod() TODO

        self.top_bar = TopBar(400, 0)
        self.left_bar = LeftBar(0, 0, self.player)
        self.bottom_bar = BottomBar(400, 650, self.player)
        self.board = Board(400, 50)

        self.max_click_ps = 10