Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexellis/adventureinc
Back to basics with simple text adventure game in C
https://github.com/alexellis/adventureinc
Last synced: 18 days ago
JSON representation
Back to basics with simple text adventure game in C
- Host: GitHub
- URL: https://github.com/alexellis/adventureinc
- Owner: alexellis
- License: mit
- Created: 2015-10-25T21:57:58.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-05-01T19:49:32.000Z (over 8 years ago)
- Last Synced: 2024-10-12T15:01:39.537Z (about 1 month ago)
- Language: C
- Size: 20.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## AdventureInC
[![Build Status](https://travis-ci.org/alexellis/AdventureInC.svg?branch=master)](https://travis-ci.org/alexellis/AdventureInC)
### Description
This is a text-based adventure game written in C as a learning exercise.
### Changelog
- Library added and separate Makefile for parsing code
- Makefile added
- Aliases added for player commands
- Separation of parsing and executing commands
- Loading and parsing a room text file
- Added start.txt and upper\_vantage.txt rooms.### Build and running
If you have a gcc toolchain, it should be as simple as:
```
make
./game
```#### Room format
Rooms are of the format:
```
[name]
Short name max length: 150 chars
[desc]
Multi-line is
OK, but max length is 160*3 chars.
[extra]
item1,alias1=item1 description
item2=item2 description
[exits]
direction=file_name_without_extension
```**[desc]**
Multi-line is OK.
**[extra]**
Not implemented
**[exit]**
Alias on left, do not include .txt on right-hand side.
Then enter your player name and have a look around.
================================
Alex Ellis 2016