Saturday, August 27, 2011

breaking into pygame

Today I stoped tearing hair out over where I put all my debug code and took out pygame tutorials. Only to start pulling out hair again.

I'm not all that patient with tutorials. I like to be bombarded with short phrases and execution of code and their results with explanations as to why they work. More often than not allegories are used (and I'm probably guilty of this) that really don't help me understand, it in action works a lot better for me. For the most part I was looking for one quick thing in these tutorials, how to get text printed out and it took me scavanging through a few tutorials.

It's less their fault and more my fault for wanting something simple that usually comes later in explanations. Skipping to those parts in some often involved missing vital initialization code that they mention in the their python primer. Beyond that I've found system incompatibilities for some odd reason. Either way I have managed to get some of it working.

tada
I'm familiar with the concepts, mostly of bliting text/images to the screen and only rendering the portions you are using at the time. It's how python does it that is the problem, and I had a heck of a time trying to pry out the simple code to do that without causing annoying crashes in IDLE. Though now that's over with, I can expand on this and will probably have "My text" moving around via keypresses in an hour or so.

The other thing that may prove to be a problem is the need for pygame instillation. I had a bit of a problem with it myself but after some trial and error I got it to work. This is not a thing I like at all considering my preferred ideas with python being self contained. Though I may be able to keep the source code in with the game archive to allow use of the game without need for instillation, I am not fully sure though.

This is more or less prep work for a traditional roguelike I'm going to try and get up running soon, but that's going to be after a probably anticlimatic Project Combat Test release. I'm still going to finish that sometime soon and hopefully life won't get in the way of my two week pseudo deadline.

4 comments:

  1. You're aiming for two weeks? Hope you don't get delayed either.

    ReplyDelete
  2. Good luck. I hope you'll get done in time.

    ReplyDelete
  3. Nothing but curious pleasures, as from thence Following!

    ReplyDelete