I would also say use Tk or Tk::Zinc. Zinc will allow you to do easy "resize and rotations" on "defined groups", which is tough to do on a plain Tk Canvas. But a plain Canvas would probably be easier to get going.

As far as Tk "not looking good"...it looks as good as the amount of "detailing" you want to put into it.

Gtk2 is coming on strong, but unless you are "expert" at objects, signals, and gui design, it will be harder to work with than Tk, plus Tk is definitely better tested on Windows, and easier to install ( it comes with ActiveStatePerl.)

Getting back to your design, I will tell you right away, you will have to work out some sort of "data transmission protocol" to keep your player's screens in "sync". What I mean is, you will not be able to "send objects thru tcp", you will be able to send hashes(or whatever) of positional(and gui details) data to your clients, then they will have to "update" their screens with that data.

For learning about it, I wrote a multiplayer "scrabble clone", which uses Tk Canvas, and Net::Easy::TCP. Its at ztk-babel client server game with chat. Feel free to look at it, and use it's code if you can figure it out. Right now, I'm playing with a poker game, using the same code, but I've turned it into an "object-oriented" design, which you may want to do. Why. It will get extremely complex trying to keep track of all the player's data, and if you make each player a blessed object, with internal methods, you will be able to simplify things. As you can see in ztk-babel, I use hash tables to send data, and I've reached the "breaking point of complexity". If I were to redo it, I would use a more OO design. Another pointer, is that Net::EasyTCP makes it easy to exchange "hashes of data", plus it has built in encryption and "port protection" , which will be important if you try to play your game on the "open internet", where you will get "port scanned and hacked" within minutes.


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

In reply to Re: GUI Package for easy drawing options by zentara
in thread GUI Package for easy drawing options by cowboy

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.