3 releases
Uses new Rust 2024
| 0.0.5 | Dec 8, 2025 |
|---|---|
| 0.0.4 | Dec 7, 2025 |
| 0.0.3 |
|
| 0.0.2 |
|
| 0.0.1 | Dec 7, 2025 |
#1279 in Game dev
64KB
1.5K
SLoC
IFEngine
Rust library for writing interactive fiction
lib.rs:
IFEngine is a rust framework for writing interactive fiction.
Other projects in this space include Twine and Inkle.
The goal is to enjoy an effortless writing experience, together with all the benefits of the Rust ecosystem.
To use this library, you write functions which produce Responses, eventualling resolving to a View.
Such functions are called Pages, and are decorated by the #[ifview] macro.
A starting page is used to initialize the Game, which can then be called upon to yield its current view through Game::view, and updated by interacting with the view.
A view consists of a sequence of Objects which you can attach by calling the provided elements and macros within the page.
Dependencies
~1.8–3MB
~64K SLoC