sd:write_your_own_adventure_games_in_basic
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| sd:write_your_own_adventure_games_in_basic [2026/03/29 15:19] – created appledog | sd:write_your_own_adventure_games_in_basic [2026/03/29 16:31] (current) – appledog | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| = Write your own Adventure Games in BASIC | = Write your own Adventure Games in BASIC | ||
| * SD-8516 edition | * SD-8516 edition | ||
| + | |||
| + | == From the Author | ||
| + | When I was growing up, somehow, my friend lent me his VIC-20 in exchange for my intellivision to play AD&D. I remember playing games like GOLF and PIRATE ADVENTURE. Later, I got hooked on games like Zork, the Hitchhiker' | ||
| + | |||
| + | This is not //that// book, but it is inspired by it and all the great BASIC programming books of yesteryear. It is my sincerest wish that this book finds a place in your heart alongside the old greats like those. | ||
| + | |||
| + | == CHAPTER 1: What is an adventure game? | ||
| + | === Types of Adventure Games | ||
| + | In 1974 Peter Langston wrote Wander, a kind of text adventure game creator. Then in 1975, William Crowther and Don Woods wrote " | ||
| + | |||
| + | The genre took off, and by 1978 Scott Adams had released Pirate Adventure. I played it on the VIC-20 when I was 5. It was a masterpiece. Later, games improved. I recall with fond memories " | ||
| + | |||
| + | The thing that I remember most of all, is that these works of art allowed me to become a part of a fantasy or science fiction world. The narrative is what mattered most. I was just at home in a Peter Jackson and Ian Livingstone Sword and Sorcery novel as I was in a D&D campaign. And, these kinds of games on the computer brought that experience into the real world in a way that fascinated me. | ||
| + | |||
| + | To me, that's what an adventure game really is; a story, a story that draws you in and lets you become a part of it. From Maniac Mansion to Trinity, from Ultima 4 to World of Warcraft, this is lesson #1. Your adventure program needs a strong story. It needs context -- a world -- it needs art. These are the fundamental building blocks of our imagination, | ||
| + | |||
| + | === Where to start | ||
| + | Let's start small, with a typical " | ||
| + | |||
| + | <codify BASIC> | ||
| + | 100 CLS | ||
| + | 110 PRINT " | ||
| + | 120 PRINT "Would you like instructions (Y/N)? " | ||
| + | 130 LET A = GETKEY() | ||
| + | 140 IF A = ASC(" | ||
| + | 150 IF A = ASC(" | ||
| + | 160 IF A = ASC(" | ||
| + | 170 IF A = ASC(" | ||
| + | 180 GOTO 130 | ||
| + | |||
| + | 200 REM INSTRUCTOINS | ||
| + | 210 PRINT "I will be your eyes and ears." | ||
| + | 220 PRINT " | ||
| + | 230 PRINT "such as GO WEST (or WEST) to move," | ||
| + | 240 PRINT "TAKE LAMP, or EAT FOOD." | ||
| + | 250 PRINT "You can type SCORE, INV, or QUIT." | ||
| + | 260 PRINT "If you need help, type HELP." | ||
| + | 300 PRINT "" | ||
| + | 310 PRINT " | ||
| + | 320 PRINT " | ||
| + | 330 PRINT "lies an old farmhouse with a reputation" | ||
| + | 340 PRINT "for forgotten secrets." | ||
| + | 350 PRINT "Most weekend hikers pass it by without" | ||
| + | 360 PRINT "a second glance. But on certain days," | ||
| + | 370 PRINT "when the light shifts just right, the" | ||
| + | 380 PRINT "place seems to... wait." | ||
| + | 390 PRINT "One sunny day, you are on a relaxing" | ||
| + | 400 PRINT " | ||
| + | 410 PRINT "the pressure of city life. Suddenly you" | ||
| + | 420 PRINT "find yourself looking for shelter in" | ||
| + | 430 PRINT "a coming rainstorm. You never expected" | ||
| + | 440 PRINT "to find this house. It, however, *was*" | ||
| + | 450 PRINT " | ||
| + | 460 PRINT "" | ||
| + | 470 INPUT "Press ENTER to continue:", | ||
| + | |||
| + | 500 CLS | ||
| + | 510 PRINT "Rural Route Bend" | ||
| + | 520 PRINT "You are on a peaceful hike along an old" | ||
| + | 530 PRINT " | ||
| + | 540 PRINT " | ||
| + | 550 PRINT " | ||
| + | 560 PRINT "cloud has drifted overhead, offering" | ||
| + | 570 PRINT " | ||
| + | 1000 PRINT "" | ||
| + | 1010 PRINT "As you round the bend, a long gravel" | ||
| + | 1020 PRINT " | ||
| + | 1030 PRINT "and a field on the left winds westward" | ||
| + | 1040 PRINT " | ||
| + | 1050 PRINT " | ||
| + | 1060 PRINT "has the comfortable look of a long-" | ||
| + | 1070 PRINT "loved family home." | ||
| + | 1080 PRINT "It appears to be abandoned." | ||
| + | </ | ||
| + | |||
| + | This is the start of our game. Although it may seem like nothing special is going on here, this is the most important part of the story. A good start will increase the player' | ||
| + | |||
| + | under construction! | ||
sd/write_your_own_adventure_games_in_basic.1774797565.txt.gz · Last modified: by appledog
