GUVI
Back

Doubt

Created 2 years ago
32 Views
1 Comments
HarishSankaranarayanan
@HarishSankaranarayanan
HarishSankaranarayanan
@HarishSankaranarayananProfile is locked. Login
In slither game, part 3... I don't understand these functions below: def snake(blockSize, snakelist): #x = 250 - (segment_width + segment_margin) * i for size in snakelist: pygame.draw.rect(gameDisplay, black,[size[0]+5,size[1],blockSize,blockSize],2) def message_to_screen(msg, color): screen_text = font.render(msg, True, color) gameDisplay.blit(screen_text, [window_width/2, window_height/2])
Comments
Please login to comment.
 
Powered by habitate.io Habitate