From 7a9f1e92599663dfcd31b9db3559f97a643b35fc Mon Sep 17 00:00:00 2001 From: bertieb Date: Tue, 1 Jun 2021 20:04:28 +0100 Subject: [PATCH] Update to May 2021 Sub Crown - NBA 98 --- subs.txt | 8 +++---- teampicker.py | 9 ++++---- teams.txt | 59 +++++++++++++++++++++++++-------------------------- 3 files changed, 37 insertions(+), 39 deletions(-) diff --git a/subs.txt b/subs.txt index a6d8a17..6e8eaee 100644 --- a/subs.txt +++ b/subs.txt @@ -1,8 +1,6 @@ -maothecat +burgiuk mattgamerguy666 -rarestmonkey +maothecat +idiotictendencies costello_ ksyme99 -etho8282 -idiotictendencies -burgiuk diff --git a/teampicker.py b/teampicker.py index 4f6b1f0..1aba324 100644 --- a/teampicker.py +++ b/teampicker.py @@ -31,7 +31,7 @@ SIZE = WIDTH, HEIGHT = 1920, 1080 BGIMG = pygame.image.load("sub_crown_bg_2.png") -FONT = pygame.font.SysFont("Fetamont", 50) +FONT = pygame.font.SysFont("Fetamont", 45) SUBFONTHEIGHT = 35 SUBFONT = pygame.font.SysFont("Fetamont", SUBFONTHEIGHT) OFFWHITE = (224, 224, 224) @@ -41,7 +41,7 @@ RED = (186, 20, 31) PURPLE = (121, 35, 158) screen = pygame.display.set_mode(SIZE) -pygame.display.set_caption("Sub Crown Mar 2021 Team Picker") +pygame.display.set_caption("Sub Crown May 2021 Team Picker") # Set up team text positioning references # @@ -72,8 +72,8 @@ for i in range(TEAMNUMROWS): SUBSFILE = "subs.txt" SUBS = [] -SUBNUMROWS = 8 -SUBROWHEIGHT = int((HEIGHT-ROWSTART)/SUBNUMROWS) +SUBNUMROWS = 9 +SUBROWHEIGHT = int((HEIGHT-ROWSTART)/9) SUBROWS = [] for i in range(SUBNUMROWS): @@ -160,6 +160,7 @@ def setup_team_board(): name = fh.readline().strip() if name == "": continue + name = name.split(' ', 1)[1] print("Adding {} at {},{}".format(name, TEAMCOLS[col], TEAMROWS[row])) diff --git a/teams.txt b/teams.txt index 1df22cb..b907bb0 100644 --- a/teams.txt +++ b/teams.txt @@ -1,30 +1,29 @@ -Argentina -Australia -Canada -Czech R -England -Fiji -France -Germany -Ireland -Italy -Ivory Coast -Japan -Latvia -Morocco -Netherlands -Namibia -New Zealand -Portugal -Romania -Russia -Scotland -South Africa -Spain -Sweden -Tonga -Uruguay -USA -Wales -W Samoa -Zimbabwe +Atlanta Hawks +Boston Celtics +Charlotte Hornets +Chicago Bulls +Cleveland Cavaliers +Dallas Mavericks +Denver Nuggets +Detroit Pistons +Golden State Warriors +Houston Rockets +Indiana Pacers +LA Clippers +LA Lakers +Miami Heat +Milwaukee Bucks +Minnesota Timberwolves +NJ Nets +NY Knicks +Orlando Magic +Philadelphia 76ers +Phoenix Suns +Portland Trailblazers +Sacramento Kings +SanAntonio Spurs +Seattle SuperSonics +Toronto Raptors +Utah Jazz +Vancouver Grizzlies +Washington Wizards