|
|
@@ -4,7 +4,7 @@ |
|
|
|
# |
|
|
|
# Two files provided: |
|
|
|
# - subs.txt -- 8 subscribers |
|
|
|
# - teams.txt -- 26 teams |
|
|
|
# - teams.txt -- 30 teams |
|
|
|
# |
|
|
|
# Pseudocode: |
|
|
|
# Split screen in 1:3 |
|
|
@@ -41,7 +41,7 @@ RED = (186, 20, 31) |
|
|
|
PURPLE = (121, 35, 158) |
|
|
|
|
|
|
|
screen = pygame.display.set_mode(SIZE) |
|
|
|
pygame.display.set_caption("Sub Crown Nov 2020 Team Picker") |
|
|
|
pygame.display.set_caption("Sub Crown Mar 2021 Team Picker") |
|
|
|
|
|
|
|
# Set up team text positioning references |
|
|
|
# |
|
|
@@ -56,7 +56,7 @@ ROWHEIGHT = int((HEIGHT-ROWSTART)/10) |
|
|
|
TEAMSFILE = "teams.txt" |
|
|
|
|
|
|
|
TEAMNUMCOLS = 3 |
|
|
|
TEAMNUMROWS = 9 |
|
|
|
TEAMNUMROWS = 10 |
|
|
|
|
|
|
|
TEAMCOLS = [] |
|
|
|
TEAMROWS = [] |
|
|
@@ -73,7 +73,7 @@ SUBSFILE = "subs.txt" |
|
|
|
SUBS = [] |
|
|
|
|
|
|
|
SUBNUMROWS = 8 |
|
|
|
SUBROWHEIGHT = int((HEIGHT-ROWSTART)/9) |
|
|
|
SUBROWHEIGHT = int((HEIGHT-ROWSTART)/SUBNUMROWS) |
|
|
|
SUBROWS = [] |
|
|
|
|
|
|
|
for i in range(SUBNUMROWS): |
|
|
|