So I know that a lot of you guys played my game, “Tiny’s World” (the one with the mouse), and I know that many [all] of you, including me, experienced severe lag. Though I didn’t put this in the game info, that game was the first that I have ever written. I’m here to say that I realised why the lag was so unbelievably high and the framerate, so low. Basically, I have been placing (“blitting”, as PyGame calls it) images on the screen, when actually I should be blitting sprites as they are all constantly moving. To fix this, I changed the pixel format of all my images using Surface.convert_alpha() which converts the Surface (image) to a sprite form. When I changed all my regular game objects, I increased my framerate from 15 to 17 FPS. This was much to my disdain, as I expected more. But then, I proceeded to change my (moving) background images to sprites, and I managed to get the framerate to in excess of 100 FPS!
What I’m here to say is, I love ALL you guys and the LD. Thanks to all you guys who run it and contribute it. And thank you for all those helpful (constructively criticising) comments you made about my game and for all the suggestions which I am currently working on adding into my game.
And by the way, I am working on a post compo version of my game and if anyone is interested in it. It wont lag [or will lag much, much less] and I will be adding features you have expressed your interesting in in your comments when you played it.
Thanks again for the LD, as I’m learning more and more about Python; both its strengths and weaknesses.
If you want to play the old version of my game (for the time being, before I upload a new version), it’s here: