fljdin / adventure

Test-driven text adventure project written in C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adventure

Adventure is a test-driven text adventure side project written in C.

Gameplay

Player starts in a room. Each action is textually described, and the player can choose which one to take. Combat show the participant's health, and the player can choose to attack, cast a sortilege, use an item, or flee.

Features

  • The map is a succession of rooms connected by doors
  • Player has armor and weapon slots
  • Player can pick up items, such as health potions
  • Player can fight enemies in turn-based combat
    • Player has a health bar
    • Player can cast spells

Technical aspects

This project is written in C, and uses the Unity testing framework. As the game is text-based, it runs entirely in a terminal. The ncurses library is used to provide an interactive interface.

Building

Meson is used as the build system. To build the project, run the following commands:

make
./build/adventure

About

Test-driven text adventure project written in C

License:The Unlicense


Languages

Language:C 69.5%Language:Meson 27.7%Language:Makefile 2.9%