I want to add a start screen where the game has not started and the screen just tells you to press [E]
to go easy mode (speed random 17-20) and anything else for normal mode (speed random 20-25). Also, where would I insert the if statement for that? I know how to make everything, just don't know where to put it. Sorry if this is confusing.
This is my code so far without the if statement not including game loop, unneccesary defs and ending:
import pygame, random, time
pygame.init()
#define stuff
screen = pygame.display.set_mode([800, 600])
amount = 5
#generate cars
for i in range(amount):
distance[i] = 0
lap[i] = 1
x[i] = 0
speedx[i] = random.randint(20, 25)
color[i] = (random.randint(0, 255),random.randint(0,
255),random.randint(0, 255))
speedx[2] = 0
keepGoing = True
start_time = pygame.time.get_ticks()