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

Updated OP with code. I'm starting to think this is a timer issue coupled with my lack of understanding of event loops. Thanks you for all your help so far.

Replies are listed 'Best First'.
Re^5: SDLx::App event loop
by zentara (Cardinal) on Jun 12, 2012 at 08:23 UTC
    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

      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