Hi, there are a few good options which I might suggest. I can't claim they are all cross-platform, but they should be with a bit of effort installing libraires.

First, for the best graphics toolkit, with access to sounds and fast graphics, SDL is your best bet. The drawback I find with SDL is that it is not really a true Canvas, with persistence of items, making you handle updating the screen a bit more difficult. See Re: Tk Game Sound demo-with SDL for how to handle SDL sounds from Tk.

If you want to work on Perl/Tk, it can manually do animations and rotations, see Tk::RotCanvas. Tk's main drawback is no transparencies. See ztk-slots for a slot machine. If you use the Tk::Zinc you get a powerful graphics engine with transparencies, rotations, zoom, matrix operations, etc. The problem with Zinc, is although it still works, it is no longer actively maintained, but it has a great manual. See Strangely addictive Tk::Zinc based game for a great Zinc example, and check out the zinc-demo.

If you want something modern and active, I would move up to Gtk2 or 3 and use the Goo::Canvas. It has about all the power of Zinc, but it is maintained and fits well with Perl. Just install Goo and check out the demo, you will see all the possibilities.

Finally, don't forget that you can run something like Goo and SDL simultaneously. One event-loop, say Goo's, is the master loop, and SDL becomes a slave event-loop which gets pumped by a Goo timer. That way you can have the ease of a Goo Canvas for graphics, and the ease of SDL for sound.

Good luck.


I'm not really a human, but I play one on earth. ..... an animated JAPH

In reply to Re: which GUI toolkit for this task? by zentara
in thread which GUI toolkit for this task? by albert925

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.