Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: CamelTrouble

by Anonymous Monk
on Apr 07, 2004 at 08:12 UTC ( #343217=note: print w/replies, xml ) Need Help??


in reply to CamelTrouble

${Tk Skillz}++. Where do you learn this stuff? I've tried learning the Perl/Tk stuff several times over but I never get anywhere because quite frankly, documentation is horrible. Where is the technique of creating images as you do within load_icons() documented? I've never seen anything even close to such code used with Tk before.

It appears that Tk can do some pretty neat stuff, the problem is that it is hard to learn how. This may just be my own opinion here, but for me, QBasic was easier to learn back in high school than Tk is now. I could relearn everything I've forgotten about QBasic and program this game in that language with no problems :)

Replies are listed 'Best First'.
Re: Re: CamelTrouble
by mawe (Hermit) on Apr 07, 2004 at 08:30 UTC
    The thing with load_icons() I first saw here. I think the best way to learn perl/tk is to look at some code. A good start might be http://perltk.org. There are also many tk-gurus here at the monastery, e.g. zentara, just to mention one (look at his homepage).
Re: Re: CamelTrouble
by flyingmoose (Priest) on Apr 07, 2004 at 16:51 UTC
    It's not hard to learn at all and the GUI API is about a billion times cleaner than Java's swing. Pick up O'Reilly's "Mastering Perl Tk" (the emu book) if you can spare the change, as it really is an awesome reference on the subject.

    I am currently considering writing a Perl/Tk SimCity clone (ambitious? YES!) just because it CAN be done. The Tk part is very easy -- it's the algorithms part that is challenging. Tk is poorly suited to games that do a bunch of really fancy rendering, but it can move things around on the screen (with a fixed number of objects/sprites) pretty darn well. I keep thinking YetAnotherScorchedEarth would be a good idea. Arrows and other primatives animate very smoothly.

    Anyhow, I'll check this program out when I get home -- not a good idea to play with camels at work :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://343217]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2020-10-25 23:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (249 votes). Check out past polls.

    Notices?