Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Text Based Perl Game

by roboticus (Chancellor)
on Dec 19, 2013 at 12:22 UTC ( [id://1067813]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub process_command {
        print "\n\n:";
    ...
        }
        ... etcetera ...
    }
    
  2. or download this
        $currentRoom = HALLWAY;
        return;
    
  3. or download this
        if ($uniform == HAVE) {
            print "\n\nOne slightly uncomfortable uniform.";
    ...
        if ($closetKey == HAVE) {
            print "\n\nThe key to the utility closet.";
        }
    
  4. or download this
    # At start of program, set up the starting location and description of
    + each object
    my $Objects = (
    ...
           }
       }
    }
    
  5. or download this
    sub bedroomCommand {
        ...
    ...
                print "There are no paintings or posters on the wall...
                sleep 5;
            }
    
  6. or download this
        elsif ($command =~ "keycard" or $command =~ "take keycard" ...
            ...
    ...
                    sleep 2;
                    $Objects{keycard}{location} = HAVE;
                    $Objects{keycard}{description} = 'Your access keycard.
    +';
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-24 08:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found