in reply to Re^4: SDLx::App event loop
in thread SDLx::App event loop

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. :-)


I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

Replies are listed 'Best First'.
Re^6: SDLx::App event loop
by Ransom (Beadle) on Jun 12, 2012 at 12:04 UTC

    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