Problems on the starting line!

So the competition has just begun, and I've already hit a bump! I'm still relatively inexperienced with Pygame, as I've only written one complete game, so still lack the experience to really make it shine.

The problem I ran into was trying to implement a 3-layer scrolling parallax background. The layers consisted of a static background (did not move), and 2 layers of trees, which stretched the entire height of the screen. The game was unable to exceed 10 frames, which was completely unacceptable for the type of game I'm going for. 

Due to this, I lost a couple days of code and art, because I'm scrapping this part of the plan. I'm still technically on track however, as I had allocated these days to work on it in advance.

Oh, and my girlfriend gave me her cold >.>

Hopefully I'll be able to power through it, and have something up in the next 24 hours that resembles a demo.

(log in to comment)

Comments

Have you tried Surface.convert(_alpha)? It converts an image to a format that blits faster to the screen surface. It speeds things up remarkable.

Good luck!
Hey Ernie, 

If you're referring to Surface.convert_alpha(), I actually have been, and it seems to actually slow things down a bit. Perhaps it has to do with the source image? I am required to convert my images however, as they lose their transparent properties otherwise.
Strange, then i haven't a clue what your problem might be. Perhaps is the resolution to high? I don't know.

However get well soon.