Skip to content

A text adventure game engine developed in UChicago's CMSC 22000 - Introduction to Software Development

Notifications You must be signed in to change notification settings

torresszy/chiventure

 
 

Repository files navigation

chiventure

This repository is a fork from the (https://github.com/uchicago-cs/chiventure) project. I was mainly responsible for the development of NPC battle features, and my contributions can be found specifically on issues #836, #879, and #893. The codes from me can be found on src/npc, include/npc, and tests/npc, as well as Wiki page "RPG NPC: Independent Feature: NPC Movement Design Document"

このリポジトリは、(https://github.com/uchicago-cs/chiventure) プロジェクトからのフォークです。 私は主に NPC 戦闘機能の開発を担当しており、貢献はissue #836、#879、および #893 にあります。 作成したコードは、src/npcinclude/npctests/npc、および Wiki ページ「RPG NPC: Independent Feature: NPC Movement Design Document」にあります。

chiventure displaying in an old-school terminal

chiventure is a text adventure game engine. In other words, chiventure is not an individual game but, rather, a platform that allows game authors to develop text adventure games using WDL (World Description Language) files.

Building chiventure

chiventure uses CMake. To build, run

mkdir build
cd build
cmake ..

Dependencies

chiventure depends on JSON-C, Curses, and criterion. CMake will warn if any of these are not installed with an error of the form "Could NOT find <library>"

If you are missing any of the libraries, see docs/dependencies.md for information on how to install them

Running chiventure

To run chiventure with a WDL file, run:

./chiventure <path_to_wdl_file>

To try a sample game, from inside the build directory, run

./chiventure ../tests/wdl/examples/wdl/connected-rooms.wdl

Once inside chiventure, you can type HELP for the list of available commands.

You can also run chiventure without specifying a WDL file:

./chiventure

However, at the moment, it is not possible to load a WDL file from inside chiventure.

Writing a Chiventure Game

To write a game in chiventure, see wdl.md for a specification of the WDL language.

Example games can be found in tests/wdl/examples/, such as test.wdl

Developer Resources

About

A text adventure game engine developed in UChicago's CMSC 22000 - Introduction to Software Development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 90.2%
  • WDL 5.5%
  • Python 1.8%
  • ASL 0.9%
  • CMake 0.8%
  • Yacc 0.2%
  • Other 0.6%