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