Room & Dimension

version 1 by Sebastian Rahn

  • Home page
  • Beginning
  • Previous
  • Next



  • Section 2.4 - Printing a dark room

    To say Dark Map:
    Change compass to player;
    scan surroundings;
    Repeat through Table 995
    begin;
    Change Compass to Left Space Entry;
    If Left Space Entry is a person, say "[Avatar]";
    If Left Space Entry is not a person
    begin;
    If Left Space Entry is -Wall
    begin;
    say " ";
    end if;
    If Left Space Entry is North Entrance Point
    begin;
    say " ";
    end if;
    If Left Space Entry is South Entrance Point
    begin;
    say " ";
    end if;
    say "[Avatar]";
    end if;
    Change Compass to Middle Space Entry;
    say "[Avatar]";
    Change Compass to Right Space Entry;
    If Middle Space Entry is a Entrance Point, say " ";
    say "[Avatar]";
    say line break;
    end repeat;
    say paragraph break.