in reply to Lunar Lander video game

I wasn't sure how to go about posting this script.

Moduleis on linesShould be saved as
main script001-628anything
package Clip2629-729Clip2.pm
package Vector2D730-847Vector2D.pm
package Viewport848-994Viewport.pm

The .pm files must reside in the same directory as the main script

Hope that helps

Replies are listed 'Best First'.
(RhetTbull) Re: Re: Lunar Lander video game
by RhetTbull (Curate) on Feb 07, 2002 at 16:47 UTC
    Cool little game!

    FYI, for future reference you can include each of your packages in a block inside a BEGIN block (and don't "use Package") so that your packages are available in a single file. For stuff like this it makes distributing the code a bit easier. I've modified your code accordingly (just removed the "Use Clip2;" etc. and added BEGIN{} around the packages.

Re: Re: Lunar Lander video game
by schumack (Acolyte) on Mar 29, 2002 at 02:04 UTC
    I just left all of your code in one file and commented out the 3 use Clip2 Vector2D and Viewport lines. A very nice job. Very responsive with quite small CPU and RAM load. Thanks for sharing Russ!