Mercurial > hg > early-roguelike
annotate rogue4/rogue.me.in @ 110:5f51f7d9805f
arogue5: fix some save/restore-related crashes.
The save/restore code took the pointer intended as an argument for the
doctor() daemon and wrote it to the savefile as an int. I don't know
why it took so long to fail horribly. The problem has been avoided by
replacing the value with &player when restoring. That seems to be the
only argument ever actually used.
The code also writes only four bytes for an unsigned long; if
sizeof(long) == 8, it casts to unsigned int first. It failed to do the
cast when reading back, with the result that four bytes were read and
the other half of the number was effectively uninitialized.
It apparently works now, but the save/restore code ought still to be
regarded as decidedly unfortunate.
author | John "Elwin" Edwards |
---|---|
date | Mon, 06 Jan 2014 15:57:17 -0500 |
parents | a1dc75e38e73 |
children |
rev | line source |
---|---|
51 | 1 .ds E \s-2<ESCAPE>\s0 |
2 .ds R \s-2<RETURN>\s0 | |
3 .ds U \s-2UNIX\s0 | |
4 .ie t .ds _ \d\(mi\u | |
5 .el .ds _ _ | |
6 .de Cs | |
7 \&\\$3\*(lq\\$1\*(rq\\$2 | |
8 .. | |
9 .sp 5 | |
10 .ce 1000 | |
11 .ps +4 | |
12 .vs +4p | |
13 .b | |
14 A Guide to the Dungeons of Doom | |
15 .r | |
16 .vs | |
17 .ps | |
18 .sp 2 | |
19 .i | |
20 Michael C. Toy | |
21 Kenneth C. R. C. Arnold | |
22 .r | |
23 .sp 2 | |
24 Computer Systems Research Group | |
25 Department of Electrical Engineering and Computer Science | |
26 University of California | |
27 Berkeley, California 94720 | |
28 .sp 4 | |
29 .i ABSTRACT | |
30 .ce 0 | |
31 .(b I F | |
32 .bi Rogue | |
33 is a visual CRT based fantasy game | |
34 which runs under the \*U\(dg timesharing system. | |
35 .(f | |
36 \fR\(dg\*U is a trademark of Bell Laboratories\fP | |
37 .)f | |
38 This paper describes how to play rogue, | |
39 and gives a few hints | |
40 for those who might otherwise get lost in the Dungeons of Doom. | |
41 .)b | |
42 .he '''\fBA Guide to the Dungeons of Doom\fP' | |
43 .fo ''- % -'' | |
44 .bp 1 | |
45 .sh 1 Introduction | |
46 .pp | |
47 You have just finished your years as a student at the local fighter's guild. | |
48 After much practice and sweat you have finally completed your training | |
49 and are ready to embark upon a perilous adventure. | |
50 As a test of your skills, | |
51 the local guildmasters have sent you into the Dungeons of Doom. | |
52 Your task is to return with the Amulet of Yendor. | |
53 Your reward for the completion of this task | |
54 will be a full membership in the local guild. | |
55 In addition, | |
56 you are allowed to keep all the loot you bring back from the dungeons. | |
57 .pp | |
58 In preparation for your journey, | |
59 you are given an enchanted mace, | |
60 a bow, and a quiver of arrows | |
61 taken from a dragon's hoard in the far off Dark Mountains. | |
62 You are also outfitted with elf-crafted armor | |
63 and given enough food to reach the dungeons. | |
64 You say goodbye to family and friends for what may be the last time | |
65 and head up the road. | |
66 .pp | |
67 You set out on your way to the dungeons | |
68 and after several days of uneventful travel, | |
69 you see the ancient ruins | |
70 that mark the entrance to the Dungeons of Doom. | |
71 It is late at night, | |
72 so you make camp at the entrance | |
73 and spend the night sleeping under the open skies. | |
74 In the morning you gather your mace, | |
75 put on your armor, | |
76 eat what is almost your last food, | |
77 and enter the dungeons. | |
78 .sh 1 "What is going on here?" | |
79 .pp | |
80 You have just begun a game of rogue. | |
81 Your goal is to grab as much treasure as you can, | |
82 find the Amulet of Yendor, | |
83 and get out of the Dungeons of Doom alive. | |
84 On the screen, | |
85 a map of where you have been | |
86 and what you have seen on the current dungeon level is kept. | |
87 As you explore more of the level, | |
88 it appears on the screen in front of you. | |
89 .pp | |
90 Rogue differs from most computer fantasy games in that it is screen oriented. | |
91 Commands are all one or two keystrokes\** | |
92 .(f | |
93 \** As opposed to pseudo English sentences. | |
94 .)f | |
95 and the results of your commands | |
96 are displayed graphically on the screen rather | |
97 than being explained in words. | |
98 .pp | |
99 Another major difference between rogue and other computer fantasy games | |
100 is that once you have solved all the puzzles in a standard fantasy game, | |
101 it has lost most of its excitement and it ceases to be fun. | |
102 Rogue, | |
103 on the other hand, | |
104 generates a new dungeon every time you play it | |
105 and even the author finds it an entertaining and exciting game. | |
106 .sh 1 "What do all those things on the screen mean?" | |
107 .pp | |
108 In order to understand what is going on in rogue | |
109 you have to first get some grasp of what rogue is doing with the screen. | |
110 The rogue screen is intended | |
111 to replace the \*(lqYou can see ...\*(rq descriptions | |
a1dc75e38e73
rogue4: ported to autoconf.
|