<commit_before>import pygame, sys, random
from Player import PlayerBase
from HUD import Text
from HUD import Score
from Button import Button
from BackGround import BackGround
from Level import Level
from Block import Block

pygame.init()

clock = pygame.time.Clock()

width = 800
height = 800

screen = width,height

bgImage = pygame.image.load("Art/BackupBackgroundThanks Gage.png")
bgRect = bgImage.get_rect()

balls = pygame.sprite.Group()
players = pygame.sprite.Group()


hudItems = pygame.sprite.Group()
backgrounds = pygame.sprite.Group()
blocks = pygame.sprite.Group()
players = pygame.sprite.Group()
all = pygame.sprite.OrderedUpdates()

PlayerBase.containers = (all, players)
BackGround.containers = (all, backgrounds)
Block.containers = (all, blocks)
PlayerBase.containers = (all, players)
Score.containers = (all, hudItems)

player1 = PlayerBase(80)
player2 = PlayerBase(100)
#player1 = Player1([width/2, height/2])
run = False

startButton = Button([width/2, height-100],
                     "Art/Button/Start_Base.png",
                     "Art/Button/Start_Clicked.png")

while True:
    while not run:
        for event in pygame.event.get():
            if event.type == pygame.QUIT: sys.exit()
            if event.type == pygame.KEYDOWN:
                if event.key == pygame.K_RETURN:
                    run = True
            if event.type == pygame.MOUSEBUTTONDOWN:
                startButton.click(event.pos)
            if event.type == pygame.MOUSEBUTTONUP:
                if startButton.release(event.pos):
                    run = True

        #bgColor = r,g,b
        screen.fill(bgColor)
        screen.blit(bgImage, bgRect)
        screen.blit(startButton.image, startButton.rect)
        pygame.display.flip()
        clock.tick(60)

    BackGround("Art/Background.png")

    player = PlayerBall([width/2, height/2])

    level = Level(size, 50)
    level.loadLevel("1")

    timer = Score([80, height - 25], "Time: ", 36)
    timerWait = 0
    timerWaitMax = 6

    score = Score([width-80, height-25], "Score: ", 36)

    while run:<commit_msg>The start of a running Game<commit_after>import pygame, sys, random
from Player import PlayerBase
from HUD import Text
from HUD import Score
from Button import Button
from BackGround import BackGround
from Level import Level
from Block import Block

pygame.init()

clock = pygame.time.Clock()

width = 800
height = 600
size = width,height



screen = pygame.display.set_mode(size)

bgImage = pygame.image.load("Art/BackupBackgroundThanks Gage.png")
bgRect = bgImage.get_rect()

balls = pygame.sprite.Group()
players = pygame.sprite.Group()


hudItems = pygame.sprite.Group()
backgrounds = pygame.sprite.Group()
blocks = pygame.sprite.Group()
players = pygame.sprite.Group()
all = pygame.sprite.OrderedUpdates()

PlayerBase.containers = (all, players)
BackGround.containers = (all, backgrounds)
Block.containers = (all, blocks)
PlayerBase.containers = (all, players)
Score.containers = (all, hudItems)

player1 = PlayerBase(80)
player2 = PlayerBase(100)
#player1 = Player1([width/2, height/2])
run = False

startButton = Button([width/2, height-100],
                     "Art/Button/Start_Base.png",
                     "Art/Button/Start_Clicked.png")

while True:
    while not run:
        for event in pygame.event.get():
            if event.type == pygame.QUIT: sys.exit()
            if event.type == pygame.KEYDOWN:
                if event.key == pygame.K_RETURN:
                    run = True
            if event.type == pygame.MOUSEBUTTONDOWN:
                startButton.click(event.pos)
            if event.type == pygame.MOUSEBUTTONUP:
                if startButton.release(event.pos):
                    run = True

        bgColor = r,g,b = 0,12,50
        screen.fill(bgColor)
        screen.blit(bgImage, bgRect)
        screen.blit(startButton.image, startButton.rect)
        pygame.display.flip()
        clock.tick(60)

    BackGround("Art/Background.png")

    player = PlayerBase([width/2, height/2])

    level = Level(size, 50)
    level.loadLevel("1")

    timer = Score([80, height - 25], "Time: ", 36)
    timerWait = 0
    timerWaitMax = 6

    score = Score([width-80, height-25], "Score: ", 36)

    while run:
{'fraction_non_alphanumeric': 0.11838374291115313, 'fraction_numerical': 0.02103024574669187, 'mean_word_length': 2.74933569530558, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3879933', 'n_tokens_mistral': 1423, 'n_tokens_neox': 1340, 'n_words': 317}