[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Help with pygame



Zach, code looks fine - can you attach the image as well? The problem
may lie with it.

thanks

On Sun, Dec 11, 2011 at 2:49 PM, Zack Baker <zbaker1398@xxxxxxxxx> wrote:
> Ok guys heres the code. Same error, better code.
> #!/usr/bin/env python
>
> import pygame
> pygame.init()
>
> #Set height and width of the screen
> size=[400,500]
> screen=pygame.display.set_mode(size)
>
>
> #Loop until user clicks the close button
> done=False
> clock=pygame.time.Clock()
>
> while done==False:
>     #This limits the while loop to a max of 10 times per second
>     clock.tick(10)
>
>     for event in pygame.event.get():
>         if event.type==pygame.QUIT:
>             done=True
>     car=pygame.image.load('images.BMP')
>     screen.blit(car, (50, 100))
>     pygame.display.flip()
>
>
> pygame.quit()
>
>
>
>
>
>
>
> pygame.quit()
>