[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] mystery examples in pygame tutorial
- To: pygame-users@xxxxxxxx
- Subject: [pygame] mystery examples in pygame tutorial
- From: tom arnall <kloro2006@xxxxxxxxx>
- Date: Tue, 16 Jun 2015 13:19:42 -0700
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Tue, 16 Jun 2015 16:19:46 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Zi1MCkbFiRWTmYHGiWxe8tZVsDyJjmaf/257qTfDIrk=; b=PI3qWyK5kxESEiCivsToI1Krwm/Tk6X2+gdP5/U/MvJLcktbhffsq1nop5RZdHmR9U yXcMdY5uvUzFfAKIlkJ9IZjXw8Rtk57ESeQAAag9Cm7UN9KSLvbzJ2R6HqWJQEKWmiY7 DHzteUAtw52M8qsLKpWM+hPPLsJ06MQTUYVARRmiLEcWTJmWUS0NwCR09t5XG2fFyWAZ qZQ5H2VUOipl6V2XZle43QdklZMpHyn7qbM7GfKMqk8e6kRkvnlERVA2n7MAItWnmK+9 eSVHJ+YZKIYAu+DATV4BpbgS4VldQYMX+T8hg3JWrY9C6u30xFJiMQi2g3RG3UvQDR3/ YNzQ==
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Greetings fellow pygame-istas,
I'm having a problem working through an example in the tutorial:
Help! How Do I Move An Image?
At:
http://www.pygame.org/docs/tut/MoveIt.html
in the section headed:
Going From The List To The Screen
there is this example:
>>> background = [terrain1, terrain1, terrain2, terrain2,
terrain2, terrain1]
>>> screen = create_graphics_screen()
>>> for i in range(6):
... screen.blit(background[i], (i*10, 0))
>>> playerpos = 3
>>> screen.blit(playerimage, (playerpos*10, 0))
In the line:
>>> screen = create_graphics_screen()
I can find no def for:
create_graphics_screen()
Predictably the line gets:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'create_graphics_screen' is not defined
I've studied the foregoing sections for a clue , but can find none.
Thanks in advance for any help you can give me,
Tom Arnall