Generation

generate functionMon, 11 Mar 2024

puedes trazar la ventana con 4 secciones ?, utiliza la medidas como se ve en la imagen de 150 por cada seccion de la ventana y son 4 secciones

def draw_window(width, height, sections): for i in range(sections): pygame.draw.rect(screen, color, [(width*i)/sections, (height*i)/sections, width/sections, height/sections]) # Draws the player def draw_player(x, y, width, height): pygame.draw.

Questions about programming?Chat with your personal AI assistant