I would like to know how to draw images using pygame. I know how to load them. I have made a blank window. When I use screen.blit(blank, (10,10)), it does not draw the image and instead leaves the screen blank.
screen.blit(blank, (10,10))
This is a typical layout:
myimage = pygame.image.load("myimage.bmp") imagerect = myimage.get_rect() while 1: your_code_here screen.fill(black) screen.blit(myimage, imagerect) pygame.display.flip()
1.4m articles
1.4m replys
5 comments
57.0k users