📄 pirate.bas
字号:
9000 REM end of game9010 PRINT "You have died. Too bad."9020 INPUT "Would you like to start over";F$9030 F$=LEFT$(F$,1)9040 IF F$="Y" OR F$="y" THEN GOTO 90909050 IF F$="N" OR F$="n" THEN GOTO 90709060 PRINT "Please answer the question.":GOTO 90209070 PRINT:PRINT "Ok. See you next time on Pirate Island."9080 FOR I=1 TO 100:NEXT I:CLS:END9090 FLAG1=0:FLAG2=0:FLAG3=0:FLAG4=0:FLAG5=0:FLAG6=0:FLAG6=0:FLAG7=0:FLAG8=0:FLAG9=0:FLAG10=0:FLAG11=0:FLAG12=0:FLAG13=0:FLAG14=0:FLAG15=0:FLAG40=0:FLAG55=0:FLAG50=0:FLAG60=0:FLAG70=0:FLAG95=0:FLAG96=0:FLAG97=0:FLAG99=0:FLAG99=0:FLAG100=09100 RO=269110 TR(1)=35:TR(2)=25:TR(3)=8:TR(4)=40:TR(5)=255:TR(6)=255:TR(7)=23:TR(8)=40:TR(9)=255:TR(10)=36:TR(11)=45:TR(12)=255:TR(13)=255:TR(14)=2559111 A(26,3)=0:A(27,4)=0:A(21,6)=0:A(23,5)=09120 CLS:GOTO 17214000 REM PRINT ROOM CONTENTS14020 FLAG99=0:JKH=0:FOR I=1 TO 1414030 IF TR(I)=RO THEN JKH=I14031 IF JKH<>I THEN 1404014035 IF FLAG99=0 THEN PRINT O2$(JKH) ELSE PRINT O2$(JKH)14036 FLAG99=1:JKH=I14040 NEXT14050 RETURN15000 REM ROOM DESCRIPTION15010 COLOR 0,715020 LOCATE 25,115030 PRINT " "15040 LOCATE 25,3:PRINT RO$(RO)15050 LOCATE 25,50:PRINT "Score:";SCORE15060 COLOR 7,015065 PRINT RO$(RO)15066 IF RO>39 THEN 1509015070 ON RO GOSUB 15110,15150,15150,15175,15210,15240,15280,15320,15210,15210,15360,15400,15210,15450,15490,15520,15560,15450,15450,15600,15640,15680,15720,15760,15800,15850,15890,15920,15950,16000,16040,16080,16120,16170,16170,16190,16230,16270,1632015071 IF RO<>25 THEN 1508015072 PRINT:PRINT "The captain looks at you the says, 'Well what's then longitude of Pirate":INPUT "Island";F1:INPUT "'Ok, now what's the latitude";F215073 PRINT "'You better be right or you'll regret you ever woke up this morning! Now leave.'":IF F1=F4 AND F2=F3 THEN FLAG98=1:START=1:RO=29:PRINT:RETURN 19015074 START=1:RO=29:FLAG98=0:RETURN 19015080 RETURN15090 ST=RO-39:ON ST GOSUB 16360,16410,16440,16480,16510,1655015100 RETURN15110 REM ROOM 115120 PRINT "You are on the top of a high cliff overlooking the blue waters of the ocean. A"15130 PRINT "path leads down. The soil is damp here."15140 RETURN15150 REM ROOM 2 AND 315160 PRINT "You are in a large rain forest."15170 RETURN15175 REM ROOM 415180 PRINT "You are on a small path leading out of a large rain forest to the west. In the"15190 PRINT "center of the path there is a large tree."15200 RETURN15210 REM ROOM 5,9,10 AND 1315220 PRINT "This is a thick forest covered by many trees, all of which are unclimbable."15230 RETURN15240 REM ROOM 615250 PRINT "You are standing below a large cliff. A path leads up to the cliff while an"15260 PRINT "east/west path heads towards a cove and a meadow."15270 RETURN15280 REM room 715290 PRINT "You are near a large rock which has probably stood here for many hundreds of"15300 PRINT "years. A small path leads south."15310 RETURN15320 REM room 815330 PRINT "You are in a large tree above a small path. The many leaves and branches"15340 PRINT "prevent you from going any further up, while a large stump leads down."15350 RETURN15360 REM room 1115370 PRINT "You are standing on the shore of an inland cove. The clear, blue waters of"15380 PRINT "the ocean are of to the east, while a murky smell comes from the south. The"15385 PRINT "soil is damp here."15390 RETURN15400 REM room 1215410 PRINT "You are standing in a large meadow where birds sing and deer play. The tall,"15420 PRINT "lush grass beneath you is stamped out, forming a path to the north, south and"15430 PRINT "west."15440 RETURN15450 REM rooms 14,18 and 1915460 PRINT "This is a murky, dismal swamp where hideous creatures hide when they are not on"15470 PRINT "the hunt. A path leads to the west."15480 RETURN15490 PRINT "You are standing, or rather were standing, in a large pond of quick sand."15500 PRINT "You are slowly...slowly...slowly...sinking."15510 RETURN 900015520 REM room 1615530 PRINT "You are walking along a beach path which surrounds the southwest part of the"15540 PRINT "island. To the east you can see a beach, while to the west comes a murky smell."15550 RETURN15560 REM room 1715570 PRINT "This is a sandy beachy coming out of the water. Palm tress line the shore and"15580 PRINT "a path leads to the west and to the east. Another path heads north."15590 RETURN15600 REM room 2015610 PRINT "You are standing in a dark cave leading out of a swamp. From the east comes"15620 PRINT "squeaky noises (Maybe you aren't the only one on this island)."15630 RETURN15640 REM room 2115650 PRINT "You are in a cave with many bats. The ground is damp here. ";:IF TR(4)<>200 THEN PRINT " The bats see you and attack.":PRINT "You have many bat bites and slowly...slowly...slowly die.":RETURN 900015660 PRINT " The bats, seeing your garlic, stay far back."15670 RETURN15680 REM room 2215690 PRINT "You are in a shallow cove, so shallow that you can stand up. To the north there"15700 PRINT "is a sandy beach, while to all other directions there is deep water."15710 FLAG40=1:RETURN15720 REM room 2315730 PRINT "You are in a secret cave below a grate. From up above you can hear squeaky"15740 PRINT "noises."15750 RETURN15760 REM room 2415770 PRINT "This is the wheelhouse of the ship where the ship is directed. A navigator is"15780 PRINT "here directing the wheel over the blue water of the ocean."15790 RETURN15800 REM room 2515810 PRINT "You are in the captain's quarters, a large room with many sea equipment along"15820 PRINT "the including a compass and an old relic made out of gold. There is a large,"15830 PRINT "wooden desk here containg top-secret information."15840 RETURN15850 REM room 2615860 PRINT "You are in your cabin, a small room with minor furnishments. The only"15870 PRINT "furnishments are a bed and a dresser with only one drawer. A large wooden door"15871 PRINT "is on the east wall."15880 RETURN15890 REM room 2715900 PRINT "You are in the north end of a hallway running north to south."15910 RETURN15920 REM room 2815930 PRINT "You are on the port section of the ship's deck. To the north there is the "15940 PRINT "ship's wheelhouse. Also the mid deck is to the south."15945 RETURN15950 REM room 2915960 PRINT "You are on the ship's port deck. To the west is another portdeck and to the"15970 PRINT "south there is the mid deck. To the east there is a passageway leading to the"15980 PRINT "wheelhouse and to the north there is a large door leading to the captain's"15981 PRINT "quarters."15990 RETURN16000 REM room 3016010 PRINT "You are in the crew's cabin portion of the ship. There are many bunks and gear"16020 PRINT "here that belongs to other people, so don't touch it."16030 RETURN16040 REM room 3116050 PRINT "This is a hallway running north to south. To the west is the crew's cabin while"16060 PRINT "up there is the mid deck."16070 RETURN16080 REM room 3216090 PRINT "You are on the ship's mid deck. Another mid deck is off to the east while the"16100 PRINT "ship's port and starboard decks are off to the north and south. A large mast is"16105 PRINT "here with a crow's nest on top of it."16110 RETURN16120 REM room 3316130 PRINT "You are on one of two mid decks. This mid deck has a ladder leading down to the"16140 PRINT "decks below. Also the port and starboards are off to the north and south while"16150 PRINT "a large mast is above you. On the top of the mast, there is a crow's nest."16160 RETURN16170 REM room 34 and 3516180 PRINT "You are in a crow's nest, a lookout site for land, storms and other ships."16181 RETURN16190 REM room 3616200 PRINT "You are in the ship's mess hall where every day hungry crewmen are fed. To the"16210 PRINT "south is the galley and to the east is a hallway."16220 RETURN16230 REM room 3716240 PRINT "You are in a hallway running north to south. To the west is the ship's mess"16250 PRINT "hall."16260 RETURN16270 REM room 3816280 PRINT "You are on the starboard deck of the ship. To the east there is another"16290 PRINT "starboard deck, while to the north there is a mid deck. To the south there is"16300 PRINT "the ship's library."16310 RETURN16320 REM room 3916330 PRINT "This is the ship's starboard deck. There is a ladder here, leading down to a"16340 PRINT "hallway and a deck to the north and to the west."16341 IF RO<>39 THEN 1510016342 IF FLAG40<>1 THEN 1510016343 PRINT16344 IF RO=39 AND FLAG40=1 AND TR(9)=200 THEN PRINT "As you come back aboard the ship, the captain greets you. 'Welcome back, matey!":PRINT "Congradulations, you found the coin. Now we will all be":PRINT "rich!'":SCORE=SCORE+55:EGG=1:RETURN 200016345 IF RO=39 AND FLAG40=1 AND TR(9)<>200 THEN PRINT "As you come back aboard the ship, the captain greets you. 'Welcome back, matey!":PRINT "What? You didn't find the coin. I'll kill you for that!' The captain"16346 PRINT "then pulls out his sword and kills you!":RETURN 200016350 RETURN16360 REM room 4016370 PRINT "This is the ship's galley where food is prepared. A large stove is against the"16380 PRINT "south wall and many ingredients awaiting to be prepared in the stew the cook is"16390 PRINT "making."16400 RETURN16410 REM room 4116420 PRINT "You are in the south end of a hallway running north to south."16430 RETURN16440 REM room 4216450 PRINT "You are in the ship's library with many books lining the wall. A card catalog is"16460 PRINT "here and a card catalog reference note is pinned on top of the card catalog."16470 RETURN16480 REM room 4316490 PRINT "You are under water. You are sinking in the soft sand......."16500 RETURN 900016510 REM ROOM 4416520 PRINT "You are swimming on the top of the water in an inland cove. Off to the east is"16530 PRINT "the shore of the cove."16540 RETURN16550 REM room 4516560 PRINT "You are on the bottom of a cove. The sand here is sturdy, thus you don't sink."16570 RETURN19990 END20000 REM INITIALIZE20010 RO=26:SCORE=020015 F3=45:F4=2920020 FOR I=1 TO 4520030 FOR J=1 TO 620040 READ A(I,J)20050 NEXT J20060 NEXT I20070 FOR I=1 TO 1420080 READ O1$(I),O2$(I),TR(I),IN$(I)20090 NEXT I20100 FOR I=1 TO 4520110 READ RO$(I)20120 NEXT I20130 RETURN25000 REM DATA STATEMENTS25010 DATA 0,0,0,0,0,6:REM ROOM 125020 DATA 2,2,3,2,0,0:REM ROOM 225030 DATA 2,3,4,0,6,0:REM ROOM 325040 DATA 0,0,0,3,8,0:REM ROOM 425050 DATA 0,5,10,9,0,0:REM ROOM 525060 DATA 0,0,12,11,1,3:REM ROOM 625070 DATA 0,17,0,0,0,0:REM ROOM 725080 DATA 0,0,0,0,0,4:REM ROOM 825090 DATA 5,10,13,9,0,0:REM ROOM 925100 DATA 5,19,10,9,0,0:REM ROOM 1025110 DATA 6,15,12,0,0,0:REM ROOM 1125120 DATA 6,16,0,11,0,0:REM ROOM 1225130 DATA 9,0,0,18,0,0:REM ROOM 1325140 DATA 0,19,14,20,0,0:REM ROOM 1425150 DATA 0,0,0,0,0,0:REM ROOM 1525160 DATA 12,0,17,15,0,0:REM ROOM 1625170 DATA 7,22,18,16,0,0:REM ROOM 1725180 DATA 13,0,0,17,0,0:REM ROOM 1825190 DATA 14,18,19,10,0,0:REM ROOM 1925200 DATA 0,0,21,14,0,0:REM ROOM 2025210 DATA 0,0,0,20,0,0:REM ROOM 2125220 DATA 17,39,43,43,43,43:REM ROOM 2225230 DATA 0,0,0,0,21,0:REM ROOM 2325240 DATA 0,0,29,28,0,0:REM ROOM 2425250 DATA 0,29,0,0,0,0:REM ROOM 2525260 DATA 0,0,0,0,0,0:REM ROOM 2625270 DATA 0,31,0,0,0,0:REM ROOM 2725280 DATA 24,32,29,0,0,0:REM ROOM 2825290 DATA 0,33,24,28,0,0:REM ROOM 2925300 DATA 0,0,31,0,0,0:REM ROOM 3025310 DATA 27,37,0,30,33,0:REM ROOM 3125320 DATA 28,38,33,0,0,0:REM ROOM 3225330 DATA 29,39,0,32,0,31:REM ROOM 3325340 DATA 0,0,0,0,0,32:REM ROOM 3425350 DATA 0,0,0,0,0,33:REM ROOM 3525360 DATA 0,40,37,0,0,0:REM ROOM 3625370 DATA 31,41,0,36,39,0:REM ROOM 3725380 DATA 32,42,39,0,0,0:REM ROOM 3825390 DATA 33,0,0,38,0,37:REM ROOM 3925400 DATA 36,0,0,0,0,0:REM ROOM 4025410 DATA 37,0,0,0,0,0:REM ROOM 4125420 DATA 38,0,0,0,0,0:REM ROOM 4225430 DATA 0,0,0,0,0,0:REM ROOM 4325431 DATA 0,0,11,0,0,45:REM ROOM 4425432 DATA 0,0,0,0,44,0:REM ROOM 4525440 DATA "SHO","There is an old shovel here.",35,"a shovel"25450 DATA "CAP","The captain of the ship is here.",25,""25460 DATA "KEY","There is a shiny key laying near you.",8,"a key"25470 DATA "GAR","There is a clove of garlic near you.",40,"a clove of garlic"25480 DATA "BOO","There is a bounded book here.",255,"a book"25490 DATA "SWO","A sharp sword is here.",255,"a sharp sword"25500 DATA "CHE","There is an old pirate chest here.",23,""25510 DATA "COO","The ship's cook is here, cooking a stew.",40,""25520 DATA "COI","There is a Spanish coin here.",255,"a gold coin"25530 DATA "TRA","There is a tray here full of discarded food.",36,"a tray"25531 DATA "BOX","Near you, there is small box.",45,"a box"25532 DATA "PIC","There is a thieve's pick here.",255,"a thieve's pick"25533 DATA "GRA","There is a metal grate here.",255,""25534 DATA "BAG","A bag of silver coins is here.",255,"a bag of silver coins"25535 DATA High Cliff,Rain Forest,Rain Forest,Small Path,Thick Forest,Near Cliff25540 DATA Rock,Up A Tree,Thick Forest,Thick Forest,Inland Cove,Meadow25550 DATA Thick Forest,Swamp,Quicksand,Beach Path,Sandy Beach,Swamp,Swamp25560 DATA Dark Cave,Bat Cave,Shallow Cove,Secret Cave,Wheelhouse25570 DATA Captain's Quarters,Your Cabin,Hallway,Port Deck,Port Deck25580 DATA Crew's Cabin,Hallway,Mid Deck,Mid Deck,Crow's Nest,Crow's Nest25590 DATA Mess Hall,Hallway,Starboard Deck,Starboard Deck,Galley,Hallway25600 DATA Ship's Library,Under Water,Top of the Bay,Bottom of the Bay,Hallway,Starboard Dec
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -