http://stackoverflow.com/questions/27644384/unable-to-use-create-graphics-screen-in-pygame

On Tue, Jun 16, 2015 at 2:19 PM, tom arnall <kloro2...@gmail.com> wrote:

> 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
>

Reply via email to