Pygame: Filling the screen with tile images

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • CPUFreak91

    #1

    Pygame: Filling the screen with tile images

    I'm new to Pygame (by 2 days) and I can't figure out how to tile and
    image as the background image.

  • Ben Sizer

    #2
    Re: Pygame: Filling the screen with tile images

    I don't think PyGame will handle tiling for you, or any concept of a
    'background image'. If you want something to appear multiple times on
    the screen, you need to draw it multiple times. If you do that onto a
    surface that is the same size as your screen, you can then consider
    that the background image and blit that to the screen at the start of
    every frame you draw.

    --
    Ben Sizer

    Comment

    Working...