Giter Site home page Giter Site logo

ethinethin / secret Goto Github PK

View Code? Open in Web Editor NEW
10.0 0.0 1.0 136 KB

Secret in the Forest - a C-based text adventure game engine

License: BSD 3-Clause "New" or "Revised" License

Makefile 1.66% C 83.62% Objective-C 14.72%
adventure text adventure-game-engine adventure-game c text-adventure text-adventure-game text-adventure-engine

secret's Introduction

================================================================================

Secret in the Forest

A text adventure engine written in C by Easter <[email protected]>

================================================================================

TO INSTALL

GNU/Linux, Mac OS, or similar:

Use the git command line tool to download, and make to compile:

% git clone https://github.com/ethinethin/Secret
% cd Secret
% make
% ./Secret

Windows:

Install Cygwin with git, gcc, and make, then follow the above instructions. The
binary will be called Secret.exe.

================================================================================

ABOUT THE ENGINE

This is a text adventure game engine, and comes with a finished game that is
immediately playable. 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.

================================================================================

MODIFYING

I encourage you to fork and modify the game engine with no restrictions besides
BSD 3-clause licensing terms (see LICENSE file). Below is a key to the files
used for different functions. Most .c files are paired with a .h file with the
same name for function prototypes.

	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 without modifying the engine, 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.

You are also free to modify any code to add or remove features.

================================================================================

ABOUT ME

This was an educational project for myself to learn how to write a program from
scratch in C. I thought there is a proud tradition of old-fashioned text games
written in C, so why not try to write one myself? This is also my second attempt
at this project, and I corrected a lot of the mistakes I made in the old
version.

If you want to contact me, email me at [email protected] 

================================================================================

secret's People

Contributors

ethinethin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

marler8997

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.