in reply to Perl Simple Games Pack

The exactly same idea is long-ago implemented in Tk (which is part of Tcl/Tk), see it on tcl/tk wiki page at Tk Game Pack

the single file tkgamepack.kit is run with "tclkitsh", so this is run with 2 files, but actually single-file executable is also possible.

This is not Perl, but Tcl could be very tightly tied to Perl with a Tcl-Tk CPAN module.

To say from a little different perspective - I, personally, write perl+Tcl/Tk code in a such way:

$interp->Eval(<<'EOS'); # here goes Tcl/Tk code to construct GUI interface EOS # and here goes perl/Tk text to use my widgets $text->insert('end','text');
so if I would implement your idea I would heavily base on said tkgamepack.kit file.

update: fix 2 typos

Replies are listed 'Best First'.
Re^2: Perl Simple Games Pack
by sir_lichtkind (Friar) on Sep 19, 2008 at 12:41 UTC
    Interesting, but I really thought about the games that are already implemented in Perl. Shure the list on this TCL site looks impressive, but my idea was not to have A games pack qith a Purlsticker on it, but to release THESE games. Because when they are used more widely this also will spur theyr developement. What i envision is a nice layouted window, almost like HTML where you can see all the games at once with links to description and links to start the game.

    Kephra, a beautiful Perl Editor lives at http://kephra.sourceforge.net
      once again, the "tkgamepack.kit" is indeed HTML-like looking Tk app with clickable links that start a game or demo, and this coincides with your envision :)

      Back to the topic, Perl will never have such a collection of games, because Tk is not its domain, unlike Tcl/Tk, which is born to be GUI-enabled.

      Have you tried running this "tkgamepack.kit"?
      its really impressive.

        not yet, but it seems to be worth a closer look. But I really think we have slightly different intentions. I would be very happy if we had 10 or 15 Games, which is the number i counted so far.

        And as i said i do lot of WxPerl and know that do GUI in Perl is n0t that hard.

        Kephra, a beautiful Perl Editor lives at http://kephra.sourceforge.net