home · contact · privacy
Simplified textfile_sizes() and replaced all get_linemax() calls with it.
[plomrogue] / README
1 plomrogue
2 =========
3
4 plomlompom tries to build his own roguelike. Currently, it doesn't do much
5 interesting.
6
7 You can move around a player and meet a number of different enemies. You have 5
8 hitpoints to lose before death; they start with different amounts of hitpoints
9 depending on their species. Your score grows by killing enemies, to the amount
10 of hitpoints each killed enemy started with. Dead enemies become dirt,
11 skeletons or "magic meat"--such objects can be collected, and "magic meat" can
12 be consumed to gain hitpoints. Note that different kinds of moves take different
13 numbers of turns to finish.
14
15 Enemies' AI is very dumb so far: Each turn, they try to move in the (beeline)
16 direction of the nearest enemy, so they often bump into obstacles.
17
18 There is only one save file (named "savefile"), and it gets overwritten each new
19 turn. To start over with a new world, delete it.
20
21 Install/run
22 -----------
23
24 Dependencies: the ncurses library.
25
26 git clone https://github.com/plomlompom/plomrogue
27 cd plomrogue
28 make
29 ./roguelike
30
31 Keybindings and window configuration
32 ------------------------------------
33
34 In the default window configuration, the window appearing on the left sports a
35 list of keybindings available globally and additionally via the window currently
36 selected as active.
37
38 Hit "w" (per default keybindings) to switch the "active" window to a view that
39 allows changing its geometry. One further hit on "w" switches the window to a
40 view that allows changing its window-specific keybindings. The global
41 keybindings may be changed in the "Global keys" window, those of the window
42 geometry configuration in the "Window geometry keys" window" and those of the
43 window-specific keybindings configuration in the "Window keybinding keys"
44 window; by default, these three windows are not visible, but may be turned on by
45 hitting the "F6", "F7" and "F8" keys.
46
47 What actions are available globally or only in specific windows can be further
48 manipulated by editing the files config/keybindings_global and
49 config/windows/Win_* that map keycodes to commands to the respective keybinding
50 repositories. While keybindings_global contains merely a list of keycode command
51 mappings, the Win_* files start with the name of the windows to be configured,
52 followed by a one-character line for internal use (mapping the window to one of
53 several internally available window content drawing functions), followed by two
54 lines describing the window's designated height and width, and only then an
55 optional list of keybindings specific to that window.
56
57 Replay game recording
58 ---------------------
59
60 Run "./roguelike -s" to watch a recording of the current game from the
61 beginning. Hit the "next turn / wait" key to increment turns. Keys to
62 manage windows, scroll on the map and quit the program are active; keys
63 to perform player actions are inactive. Append a number to the -s option
64 (like "-s100") to start the recording at the respective turn number.
65
66 Hacking
67 -------
68
69 The movements/actions available to the player and the enemies are defined and
70 can be changed in config/map_object_actions. Each line consists of, first, a
71 numerical ID used internally to manage the action, secondly the number of turns
72 the action takes, and thirdly a string representing the action internally.
73
74 The different map object types, i.e. species (including the player's human one)
75 and item types, can be edited in config/defs. Here the first value is a
76 numerical ID that represents the object type, the second one describes what type
77 this object decomposes to when it gets destroyed/killed, the third value is the
78 character used to represent the object visually on the map, the fourth value is
79 the number of hitpoints the object starts with (items are dead and start with
80 zero hitpoints, anything else moves), the fifth is the string that names the
81 object in the game log.