Pygame: Filling the screen with tile images

C

CPUFreak91

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

Ben Sizer

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top