forked from Lipscomb-SoC/forest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
41 lines (30 loc) · 1.54 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
================================================================================
Secret in the Forest
A text adventure written in C by Easter <[email protected]>
================================================================================
This is a text adventure game. Features in the game (all viewable on the help
screen) include:
walk navigate around the world
look examine surroundings or item
search find hidden items
take pick up item
drop drop item
use use item or items
In the game are 33 rooms, 22 items, and 45 interactions. I recommend playing it
before modifying the code.
================================================================================
I encourage you to fork and modify the game. Below is a key to the files used
for different functions.
main.c Splash screen, enter input loop
input.c Input loop, command parsing, tab completion, endings
rooms.c Navigation of rooms
rooms-desc.h Room descriptions
items.c Take, drop, inventory, and other item functions
items-desc.h Item descriptions
inter.c Interaction (use) parsing and functions
inter-even.h Interaction events
If you want to write your own game, the main files you should edit are main.c
(splash screen), input.c (endings), rooms-desc.h, items-desc.h, and
inter-even.h. The structs are fairly self-explanatory, but I recommend playing
through the game as is to better understand the events.
================================================================================