예제 #1
0
def start_game():
    """
    Start and initialize the game
    """
    global PYGAME_SCREEN, CHARACTER_SIZE, NUMBER_OF_CHARACTERS, FONT_SIZE
    a1_game.set_up_game()
    
    # Set up the width and height of the screen (proportional to the character
    # sizes)
    width = NUMBER_OF_CHARACTERS * CHARACTER_SIZE
    height = 1 * CHARACTER_SIZE + PADDING * 2
    
    pixel_size = width, height
    
    # set the screen to draw on
    PYGAME_SCREEN = pygame.display.set_mode(pixel_size)
예제 #2
0
def start_game():
    """
    Start and initialize the game
    """
    a1_game.set_up_game()