Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Lunar Lander video game

by rbc (Curate)
on Feb 06, 2002 at 21:53 UTC ( #143718=perlcraft: print w/ replies, xml ) Need Help??

Comment on Lunar Lander video game
Download Code
Re: Lunar Lander video game
by rbc (Curate) on Feb 07, 2002 at 00:17 UTC
    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
      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.

      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!
Re: Lunar Lander video game
by dragonchild (Archbishop) on Mar 29, 2002 at 14:46 UTC
    As an interesting note, the guy who designed the real lunar lander died last weekend. *shrugs*

    ------
    We are the carpenters and bricklayers of the Information Age.

    Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2014-08-29 18:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (286 votes), past polls