0

When I run the following, according to the "Rapid Game Development in Python"-tutorial by Richard Jones:

>>> import pygame
>>> from pygame.locals import *
>>> screen = pygame.display.set_mode((1024,768),DOUBLEBUF)
>>> pygame.display.flip()
>>> car = pygame.image.load('pics/car.png')
>>> car
<Surface(501x737x32 SW)>
>>> screen.blit(car, (50,100))
<rect(50, 100, 501, 668)>
>>> pygame.display.flip()
>>> car
<Surface(501x737x32 SW)>
>>> car==None
False

No image is being displayed on my window. I can not figure out why as I've only followed the instructions.

I'm on Mac OSX with python 3.6.2, I've installed pygame with pip.

EDIT: I ran >>> pygame.display.update() and it still doesn't display.

Sahand
  • 7,980
  • 23
  • 69
  • 137

0 Answers0