Sha256: c50c17643d525ddcf9c4a3b79064443146710fc5faadf8633a30dfbbd6d4b478

Contents?: true

Size: 1.14 KB

Versions: 3

Compression:

Stored size: 1.14 KB

Contents

# Gamefic TTY

A Gamefic engine for games that run on IO.

**Features:**

* Works with the `gamefic-standard` library
* Converts Gamefic's default HTML output to ANSI text

**Common uses:**

* Run a game on the command line.
* Attach IO streams to run the game over other processes.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'gamefic-tty'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install gamefic-tty

## Usage

The easiest way to get started with Gamefic TTY is with the Gamefic SDK. See the [SDK README](https://github.com/castwide/gamefic-sdk) for more information.

An example script that runs a game on the command line:

```ruby
require 'gamefic-tty'

class Example < Gamefic::Plot
  introduction do |actor|
    actor.tell "Hello, world!"
  end
end

Gamefic::Tty::Engine.run(plot: Example.new)
```

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/castwide/gamefic-tty.

## License

The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gamefic-tty-4.0.0 README.md
gamefic-tty-3.0.1 README.md
gamefic-tty-3.0.0 README.md