my ... understanding of event loops It isn't SDL, it's Tk; but see Anatomy of an Eventloop. It may give you an idea of what is going on in SDL. P.S. I tried to run your code, but couldn't find what "use btype" is, or "ship.pm". Your code is indeed a batch of spaghetti. :-)
| [reply] |
It is pretty spaghetti. It's not a complete listing either :( I've got so much of a hierarchy right now and most are just empty placeholder classes. When I have massive amounts of terrible code I really don't like posting it. This was just a testbed for SDL that started to get a little bulky.
I've started the article and so far it seems to be exactly what I'm looking for. Thank you for pointing me to good resources. I'll be working on rewriting this code a little smaller and posting a follow up on this thread with the wisdom I've gained.
Ransom
| [reply] |